TextParagraph
TextParagraph class
Represents the text paragraph setting.
Properties
| Name | Type | Description |
|---|---|---|
| Bullet | Bullet | Gets the bullet. |
| Type | int | Gets the type of text node. The value of the property is TextNodeType integer constant. |
| LineSpaceSizeType | int | Gets and sets the amount of vertical white space that will be used within a paragraph. The value of the property is Line |
| LineSpace | float | Gets and sets the amount of vertical white space that will be used within a paragraph. |
| SpaceAfterSizeType | int | Gets and sets the amount of vertical white space that will be present after a paragraph. The value of the property is Li |
| SpaceAfter | float | Gets and sets the amount of vertical white space that will be present after a paragraph. |
| SpaceBeforeSizeType | int | Gets and sets the amount of vertical white space that will be present before a paragraph. The value of the property is L |
| SpaceBefore | float | Gets and sets the amount of vertical white space that will be present before a paragraph. |
| Stops | TextTabStopCollection | Gets tab stop list. |
| IsLatinLineBreak | boolean | Specifies whether a Latin word can be broken in half and wrapped onto the next line without a hyphen being added. |
| IsEastAsianLineBreak | boolean | Specifies whether an East Asian word can be broken in half and wrapped onto the next line without a hyphen being added. |
| IsHangingPunctuation | boolean | Specifies whether punctuation is to be forcefully laid out on a line of text or put on a different line of text. |
| RightMargin | float | Specifies the right margin of the paragraph. |
| LeftMargin | float | Specifies the left margin of the paragraph. |
| FirstLineIndent | float | Specifies the indent size that will be applied to the first line of text in the paragraph. |
| FontAlignType | int | Determines where vertically on a line of text the actual words are positioned. This deals with vertical placement of the |
| AlignmentType | int | Gets and sets the text horizontal alignment type of the paragraph. The value of the property is TextAlignmentType intege |
| DefaultTabSize | float | Gets and sets the default size for a tab character within this paragraph. |
| Children | FontSetting[] | Gets all text runs in this paragraph. If this paragraph is empty, return paragraph itself. |
| StartIndex | int | Gets the start index of the characters. |
| Length | int | Gets the length of the characters. |
| Font | Font | Returns the font of this object. |
| TextOptions | TextOptions | Returns the text options. |
Methods
| Name | Description |
|---|---|
| setWordArtStyle | Sets the preset WordArt style. |
Only for the text of shape/chart. |
TextParagraph.Bullet property
Gets the bullet.
Type: Bullet
TextParagraph.Type property
Gets the type of text node. The value of the property is TextNodeType integer constant.
Type: int
TextParagraph.LineSpaceSizeType property
Gets and sets the amount of vertical white space that will be used within a paragraph. The value of the property is LineSpaceSizeType integer constant.
Type: int
TextParagraph.LineSpace property
Gets and sets the amount of vertical white space that will be used within a paragraph.
Type: float
TextParagraph.SpaceAfterSizeType property
Gets and sets the amount of vertical white space that will be present after a paragraph. The value of the property is LineSpaceSizeType integer constant.
Type: int
TextParagraph.SpaceAfter property
Gets and sets the amount of vertical white space that will be present after a paragraph.
Type: float
TextParagraph.SpaceBeforeSizeType property
Gets and sets the amount of vertical white space that will be present before a paragraph. The value of the property is LineSpaceSizeType integer constant.
Type: int
TextParagraph.SpaceBefore property
Gets and sets the amount of vertical white space that will be present before a paragraph.
Type: float
TextParagraph.Stops property
Gets tab stop list.
Type: TextTabStopCollection
TextParagraph.IsLatinLineBreak property
Specifies whether a Latin word can be broken in half and wrapped onto the next line without a hyphen being added.
Type: boolean
TextParagraph.IsEastAsianLineBreak property
Specifies whether an East Asian word can be broken in half and wrapped onto the next line without a hyphen being added.
Type: boolean
TextParagraph.IsHangingPunctuation property
Specifies whether punctuation is to be forcefully laid out on a line of text or put on a different line of text.
Type: boolean
TextParagraph.RightMargin property
Specifies the right margin of the paragraph.
Type: float
TextParagraph.LeftMargin property
Specifies the left margin of the paragraph.
Type: float
TextParagraph.FirstLineIndent property
Specifies the indent size that will be applied to the first line of text in the paragraph.
Type: float
TextParagraph.FontAlignType property
Determines where vertically on a line of text the actual words are positioned. This deals with vertical placement of the characters with respect to the baselines. The value of the property is TextFontAlignType integer constant.
Type: int
TextParagraph.AlignmentType property
Gets and sets the text horizontal alignment type of the paragraph. The value of the property is TextAlignmentType integer constant.
Type: int
TextParagraph.DefaultTabSize property
Gets and sets the default size for a tab character within this paragraph.
Type: float
TextParagraph.Children property
Gets all text runs in this paragraph. If this paragraph is empty, return paragraph itself.
Type: FontSetting[]
TextParagraph.StartIndex property
Gets the start index of the characters.
Type: int
TextParagraph.Length property
Gets the length of the characters.
Type: int
TextParagraph.Font property
Returns the font of this object.
Type: Font
TextParagraph.TextOptions property
Returns the text options.
Type: TextOptions
setWordArtStyle(style)
Sets the preset WordArt style.
Only for the text of shape/chart.
| Parameter | Type | Description |
|---|---|---|
| style | int | A PresetWordArtStyle value. The preset WordArt style. |