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.2.0.0 (20.2)
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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also