TextBoxOptions
Contents
[
Hide
]TextBoxOptions class
Represents the text options of the shape
class TextBoxOptions;
Properties
Property | Type | Description |
---|---|---|
shapeTextVerticalAlignment | ShapeTextVerticalAlignmentType | It corresponds to “Format Shape - Text Options - Text Box - Vertical Alignment” in Excel. |
resizeToFitText | boolean | Indicates whether to resize the shape to fit the text |
shapeTextDirection | TextVerticalType | Gets or sets the text display direction within a given text body. It corresponds to “Format Shape - Text Options - Text Box - Text direction” in Excel |
leftMarginPt | number | Gets and sets the left margin in unit of Points. |
rightMarginPt | number | Gets and sets the right margin in unit of Points. |
topMarginPt | number | Gets and sets the top margin in unit of Points. |
bottomMarginPt | number | Returns the bottom margin in unit of Points |
allowTextToOverflow | boolean | Whether allow text to overflow shape. |
wrapTextInShape | boolean | Specifies text wrapping within a shape. False - No wrapping will occur on text body. True - Wrapping will occur on text body. |
shapeTextVerticalAlignment
It corresponds to “Format Shape - Text Options - Text Box - Vertical Alignment” in Excel.
shapeTextVerticalAlignment : ShapeTextVerticalAlignmentType;
resizeToFitText
Indicates whether to resize the shape to fit the text
resizeToFitText : boolean;
shapeTextDirection
Gets or sets the text display direction within a given text body. It corresponds to “Format Shape - Text Options - Text Box - Text direction” in Excel
shapeTextDirection : TextVerticalType;
leftMarginPt
Gets and sets the left margin in unit of Points.
leftMarginPt : number;
rightMarginPt
Gets and sets the right margin in unit of Points.
rightMarginPt : number;
topMarginPt
Gets and sets the top margin in unit of Points.
topMarginPt : number;
bottomMarginPt
Returns the bottom margin in unit of Points
bottomMarginPt : number;
allowTextToOverflow
Whether allow text to overflow shape.
allowTextToOverflow : boolean;
wrapTextInShape
Specifies text wrapping within a shape. False - No wrapping will occur on text body. True - Wrapping will occur on text body.
wrapTextInShape : boolean;