Skip to main content

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()

VBA TextRange.InsertDateTime: the range becomes today’s date, as a field that updates or as text.

TextRange.insertMath()

Extension: writes TeX as a native equation (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()

VBA TextRange.InsertSlideNumber: the range becomes a slide number field; returns the field’s range.

TextRange.overwrite()

Extension: rewrites the range character for character, as Change Case does; each run keeps its format.
Links the range’s text; any link already on it is replaced.

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()

Extension (Clear All Formatting): drops every run property but language, proofing marks and links.

ShapeFont.setGradientFill()

Extension (VBA 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()

Extension (VBA 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()

Adds a stop at position points from the text box’s left inset, replacing one already there.

TabStops.clear()

Removes every custom stop; the paragraphs fall back to their default tab size.

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()

The object character the equation occupies in its frame’s text.

Equation.setTex()

Rewrites the equation from TeX; the display mode stays unless options or delimiters ask otherwise.

fitText()

Stores the fitted scale on every slide shape set to AutoSizeTextToFitShape; returns how many shrank. Import from @reductoai/pptx/officejs.