TextBlock
TextBlock class
Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape’s text block.
Properties
| Name | Type | Description |
|---|---|---|
| Del | int | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| LeftMargin | DoubleValue | Specifies the distance between the left border of the text block and the text it contains. This value is independent of |
| RightMargin | DoubleValue | Specifies the distance between the right border of the text block and the text it contains. This value is independent of |
| TopMargin | DoubleValue | Specifies the distance between the top border of the text block and the first line of text it contains. |
| BottomMargin | DoubleValue | Determines the distance between the bottom border of the text block and the last line of text it contains. The default i |
| VerticalAlign | VerticalAlign | Specifies the vertical alignment of text within the text block. |
| TextBkgnd | ColorValue | Specifies the text background color for a shape. |
| DefaultTabStop | DoubleValue | Specifies the interval of the default tab stops in a text block. |
| TextDirection | TextDirection | Specifies the direction of the characters in a text block. |
| TextBkgndTrans | DoubleValue | Specifies the transparency level for the background color of a shape’s text block, from 0 (completely opaque) to 1 (comp |
Methods
| Name | Description |
|---|---|
| deepClone | Creates deep copy of this instance. |
TextBlock.Del property
A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
Type: int
TextBlock.LeftMargin property
Specifies the distance between the left border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the left margin remains the same.
Type: DoubleValue
TextBlock.RightMargin property
Specifies the distance between the right border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the right margin remains the same.
Type: DoubleValue
TextBlock.TopMargin property
Specifies the distance between the top border of the text block and the first line of text it contains.
Type: DoubleValue
TextBlock.BottomMargin property
Determines the distance between the bottom border of the text block and the last line of text it contains. The default is 4 pt. This value is independent of the scale of the drawing. If the drawing is scaled, the bottom margin remains the same.
Type: DoubleValue
TextBlock.VerticalAlign property
Specifies the vertical alignment of text within the text block.
Type: VerticalAlign
TextBlock.TextBkgnd property
Specifies the text background color for a shape.
Type: ColorValue
TextBlock.DefaultTabStop property
Specifies the interval of the default tab stops in a text block.
Type: DoubleValue
TextBlock.TextDirection property
Specifies the direction of the characters in a text block.
Type: TextDirection
TextBlock.TextBkgndTrans property
Specifies the transparency level for the background color of a shape’s text block, from 0 (completely opaque) to 1 (completely transparent).
Type: DoubleValue
deepClone()
Creates deep copy of this instance.