Word.Interfaces.TextFrameLoadOptions interface
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the text frame of a shape object.
Remarks
[ API set: WordApi BETA (PREVIEW ONLY) ]
Properties
$all | Specifying |
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. |
no |
Returns True if text in the text frame shouldn't rotate when the shape is rotated. |
orientation | Represents the angle to which the text is oriented for the text frame. See |
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 |
word |
Determines whether lines break automatically to fit text inside the shape. |
Property Details
$all
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specifying $all
for the load options loads all the scalar properties (such as Range.address
) but not the navigational properties (such as Range.format.fill.color
).
$all?: boolean;
Property Value
boolean
autoSizeSetting
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
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?: boolean;
Property Value
boolean
Remarks
bottomMargin
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the bottom margin, in points, of the text frame.
bottomMargin?: boolean;
Property Value
boolean
Remarks
hasText
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specifies if the text frame contains text.
hasText?: boolean;
Property Value
boolean
Remarks
leftMargin
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the left margin, in points, of the text frame.
leftMargin?: boolean;
Property Value
boolean
Remarks
noTextRotation
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns True if text in the text frame shouldn't rotate when the shape is rotated.
noTextRotation?: boolean;
Property Value
boolean
Remarks
orientation
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the angle to which the text is oriented for the text frame. See Word.ShapeTextOrientation
for details.
orientation?: boolean;
Property Value
boolean
Remarks
rightMargin
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the right margin, in points, of the text frame.
rightMargin?: boolean;
Property Value
boolean
Remarks
topMargin
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the top margin, in points, of the text frame.
topMargin?: boolean;
Property Value
boolean
Remarks
verticalAlignment
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the vertical alignment of the text frame. See Word.ShapeTextVerticalAlignment
for details.
verticalAlignment?: boolean;
Property Value
boolean
Remarks
wordWrap
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Determines whether lines break automatically to fit text inside the shape.
wordWrap?: boolean;
Property Value
boolean
Remarks
Office Add-ins