TextBlock class

TextBlock class

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

The TextBlock type exposes the following members:

Properties

PropertyDescription
left_marginSpecifies 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.
right_marginSpecifies 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.
top_marginSpecifies the distance between the top border of the text block and the first line of text it contains.
bottom_marginDetermines 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.
vertical_alignSpecifies the vertical alignment of text within the text block.
text_bkgndSpecifies the text background color for a shape.
default_tab_stopSpecifies the interval of the default tab stops in a text block.
text_directionSpecifies the direction of the characters in a text block.
text_bkgnd_transSpecifies the transparency level for the background color of a shape’s text block, from 0 (completely opaque) to 1 (completely transparent).

Methods

MethodDescription
clone()Creates deep copy of this instance.

See Also