Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
PowerPoint.Interfaces.TextFrameData interface
- Package:
- powerpoint
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
bottomMargin
Represents the bottom margin, in points, of the text frame.
bottomMargin?: number;
Property Value
number
Remarks
hasText
Specifies if the text frame contains text.
hasText?: boolean;
Property Value
boolean
Remarks
leftMargin
Represents the left margin, in points, of the text frame.
leftMargin?: number;
Property Value
number
Remarks
rightMargin
Represents the right margin, in points, of the text frame.
rightMargin?: number;
Property Value
number
Remarks
topMargin
Represents the top margin, in points, of the text frame.
topMargin?: number;
Property Value
number
Remarks
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
wordWrap
Determines whether lines break automatically to fit text inside the shape.
wordWrap?: boolean;
Property Value
boolean
Remarks
Office Add-ins
Feedback
Was this page helpful?
