PowerPoint.Interfaces.TextFrameData interface
An interface describing the data returned by calling textFrame.toJSON()
.
Properties
auto |
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. |
bottom |
Represents the bottom margin, in points, of the text frame. |
has |
Specifies if the text frame contains text. |
left |
Represents the left margin, in points, of the text frame. |
right |
Represents the right margin, in points, of the text frame. |
top |
Represents the top margin, in points, of the text frame. |
vertical |
Represents the vertical alignment of the text frame. See PowerPoint.TextVerticalAlignment for details. |
word |
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