PowerPoint.Interfaces.TextFrameData interface

An interface describing the data returned by calling textFrame.toJSON().

Properties

autoSizeSetting

The automatic sizing settings for the text frame. A text frame can be set to automatically fit the text to the text frame, to automatically fit the text frame to the text, or not perform any automatic sizing.

bottomMargin

Represents the bottom margin, in points, of the text frame.

hasText

Specifies if the text frame contains text.

leftMargin

Represents the left margin, in points, of the text frame.

rightMargin

Represents the right margin, in points, of the text frame.

topMargin

Represents the top margin, in points, of the text frame.

verticalAlignment

Represents the vertical alignment of the text frame. See PowerPoint.TextVerticalAlignment for details.

wordWrap

Determines whether lines break automatically to fit text inside the shape.

Property Details

autoSizeSetting

The automatic sizing settings for the text frame. A text frame can be set to automatically fit the text to the text frame, to automatically fit the text frame to the text, or not perform any automatic sizing.

autoSizeSetting?: PowerPoint.ShapeAutoSize | "AutoSizeNone" | "AutoSizeTextToFitShape" | "AutoSizeShapeToFitText" | "AutoSizeMixed";

Property Value

PowerPoint.ShapeAutoSize | "AutoSizeNone" | "AutoSizeTextToFitShape" | "AutoSizeShapeToFitText" | "AutoSizeMixed"

Remarks

[ API set: PowerPointApi 1.4 ]

bottomMargin

Represents the bottom margin, in points, of the text frame.

bottomMargin?: number;

Property Value

number

Remarks

[ API set: PowerPointApi 1.4 ]

hasText

Specifies if the text frame contains text.

hasText?: boolean;

Property Value

boolean

Remarks

[ API set: PowerPointApi 1.4 ]

leftMargin

Represents the left margin, in points, of the text frame.

leftMargin?: number;

Property Value

number

Remarks

[ API set: PowerPointApi 1.4 ]

rightMargin

Represents the right margin, in points, of the text frame.

rightMargin?: number;

Property Value

number

Remarks

[ API set: PowerPointApi 1.4 ]

topMargin

Represents the top margin, in points, of the text frame.

topMargin?: number;

Property Value

number

Remarks

[ API set: PowerPointApi 1.4 ]

verticalAlignment

Represents the vertical alignment of the text frame. See PowerPoint.TextVerticalAlignment for details.

verticalAlignment?: PowerPoint.TextVerticalAlignment | "Top" | "Middle" | "Bottom" | "TopCentered" | "MiddleCentered" | "BottomCentered";

Property Value

PowerPoint.TextVerticalAlignment | "Top" | "Middle" | "Bottom" | "TopCentered" | "MiddleCentered" | "BottomCentered"

Remarks

[ API set: PowerPointApi 1.4 ]

wordWrap

Determines whether lines break automatically to fit text inside the shape.

wordWrap?: boolean;

Property Value

boolean

Remarks

[ API set: PowerPointApi 1.4 ]