TextBlock

TextBlock class

Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape’s text block.

Properties

NameTypeDescription
DelintA flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca
LeftMarginDoubleValueSpecifies the distance between the left border of the text block and the text it contains. This value is independent of
RightMarginDoubleValueSpecifies the distance between the right border of the text block and the text it contains. This value is independent of
TopMarginDoubleValueSpecifies the distance between the top border of the text block and the first line of text it contains.
BottomMarginDoubleValueDetermines the distance between the bottom border of the text block and the last line of text it contains. The default i
VerticalAlignVerticalAlignSpecifies the vertical alignment of text within the text block.
TextBkgndColorValueSpecifies the text background color for a shape.
DefaultTabStopDoubleValueSpecifies the interval of the default tab stops in a text block.
TextDirectionTextDirectionSpecifies the direction of the characters in a text block.
TextBkgndTransDoubleValueSpecifies the transparency level for the background color of a shape’s text block, from 0 (completely opaque) to 1 (comp

Methods

NameDescription
deepCloneCreates 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.