TextFrame
PowerPoint.TextFrame. columnCount and columnSpacing are headless extensions (VBA TextFrame2.Column).
Import from @reductoai/pptx/officejs.
TextFrame properties
TextFrame.deleteText()
TextFrame.getParentShape()
TextRange
PowerPoint.TextRange: characters [start, start + length) of a text frame.
The frame’s own range has no fixed length and always spans all its text.
Import from @reductoai/pptx/officejs.
TextRange properties
TextRange.getParentTextFrame()
TextRange.getSubstring()
TextRange.insertDateTime()
TextRange.InsertDateTime: the range becomes today’s date, as a field that updates or as text.
TextRange.insertMath()
a14:m Office Math) in place of the range and returns
the equation’s one-character range. A display equation ($$…$$, \[…\] or { display: true })
takes a paragraph of its own. Same as Word’s insertMath.
TextRange.insertSlideNumber()
TextRange.InsertSlideNumber: the range becomes a slide number field; returns the field’s range.
TextRange.overwrite()
TextRange.setHyperlink()
ShapeFont
PowerPoint.ShapeFont over a text range. A getter reports the range’s direct
formatting: null when the runs disagree or inherit the property.
Import from @reductoai/pptx/officejs.
ShapeFont properties
ShapeFont.clearFormatting()
ShapeFont.setGradientFill()
Font2.Fill.TwoColorGradient): two stops from the text colour to its shade.
ParagraphFormat
PowerPoint.ParagraphFormat over the paragraphs a text range touches. The
spacing and indent members are headless extensions named after VBA’s
ParagraphFormat2; Office.js has no spelling for them yet.
Import from @reductoai/pptx/officejs.
ParagraphFormat properties
BulletFormat
PowerPoint.BulletFormat; character is a headless extension (a:buChar@char).
Import from @reductoai/pptx/officejs.
BulletFormat properties
BulletFormat.picture()
BulletFormat.Picture): a picture bullet.
TabStops
Extension (VBA ParagraphFormat2.TabStops): custom tab stops, the same on every paragraph the range touches.
Import from @reductoai/pptx/officejs.
TabStops properties
TabStops.add()
position points from the text box’s left inset, replacing one already there.
TabStops.clear()
TabStops.getItemAt()
Equation
Equation (extension): one a14:m of a text frame, read and rewritten as TeX.
Import from @reductoai/pptx/officejs.
Equation properties
Equation.delete()
Equation.getRange()
Equation.setTex()
options or delimiters ask otherwise.
fitText()
AutoSizeTextToFitShape; returns how many shrank.
Import from @reductoai/pptx/officejs.