Class TextBlock

TextBlock class

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

public class TextBlock : ICloneable

Properties

NameDescription
BottomMargin { get; set; }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.
DefaultTabStop { get; set; }Specifies the interval of the default tab stops in a text block.
Del { get; set; }A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally.
LeftMargin { get; set; }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.
RightMargin { get; set; }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.
TextBkgnd { get; set; }Specifies the text background color for a shape.
TextBkgndTrans { get; set; }Specifies the transparency level for the background color of a shape’s text block, from 0 (completely opaque) to 1 (completely transparent).
TextDirection { get; set; }Specifies the direction of the characters in a text block.
TopMargin { get; set; }Specifies the distance between the top border of the text block and the first line of text it contains.
VerticalAlign { get; set; }Specifies the vertical alignment of text within the text block.

Methods

NameDescription
Clone()Creates deep copy of this instance.

See Also