TextBlock Class

Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape's text block.
Inheritance Hierarchy
SystemObject
  Aspose.DiagramTextBlock

Namespace:  Aspose.Diagram
Assembly:  Aspose.Diagram (in Aspose.Diagram.dll) Version: 20.6.0.0 (20.6)
Syntax
public class TextBlock : ICloneable

The TextBlock type exposes the following members.

Properties
  NameDescription
Public propertyBottomMargin
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.
Public propertyDefaultTabStop
Specifies the interval of the default tab stops in a text block.
Public propertyDel
A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally.
Public propertyLeftMargin
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.
Public propertyRightMargin
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.
Public propertyTextBkgnd
Specifies the text background color for a shape.
Public propertyTextBkgndTrans
Specifies the transparency level for the background color of a shape's text block, from 0 (completely opaque) to 1 (completely transparent).
Public propertyTextDirection
Specifies the direction of the characters in a text block.
Public propertyTopMargin
Specifies the distance between the top border of the text block and the first line of text it contains.
Public propertyVerticalAlign
Specifies the vertical alignment of text within the text block.
Methods
  NameDescription
Public methodClone
Creates deep copy of this instance.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
See Also