We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make possibility of adding superscript content.
There is a method on the TextBox, Paragraph or Portion level that allows adding superscripts. Adding superscript can be looked like this:
var pres = SCPresentation.Open("add-superscript.pptx", true); var autoShape = pres.Slides[0].Shapes.GetByName<IAutoShape>("AutoShape 1"); var paragraph = autoShape.TextBox.Paragraphs[0]; var newPortion = new SCPortion(); newPortion.Font.OffsetEffect = 30; newPortion.Text = "®"; paragraph.Portions.Add(newPortion);
IFont.OffsetEffect.get()
IFont.OffsetEffect.set()
The text was updated successfully, but these errors were encountered:
@amescodes, could you please check the following test case? Looks like setter of OffsetEffect breaks presentation:
OffsetEffect
branch: master (code was refactored) presentation: autoshape-case010.pptx validator log: ooxml-validator.2022-10-12T06_53_14.318Z.json.zip
Steps:
using var pres = SCPresentation.Open("autoshape-case010.pptx"); var font = pres.Slides[2].Shapes.GetById<IAutoShape>(2).TextFrame!.Paragraphs[0].Portions[0].Font; font.OffsetEffect = 12; pres.Save();
autoshape-case010.pptx
Actual behavior: PowerPoint suggests "Repair":
Expected behavior: PowerPoint should not suggests "Repair".
Sorry, something went wrong.
ashahabov
No branches or pull requests
Make possibility of adding superscript content.
Expected Behavior
There is a method on the TextBox, Paragraph or Portion level that allows adding superscripts. Adding superscript can be looked like this:
Check List
Pull Requests
Testing
IFont.OffsetEffect.get()
IFont.OffsetEffect.set()
The text was updated successfully, but these errors were encountered: