Search
Box.TextStyle Property
See Also
 



Gets or sets the alignment style of the box' Text.

 Syntax

VB6  Copy Code

Public Property Get TextStyle() As ETextStyle
Public Property Let TextStyle( _
    ByVal Value As ETextStyle _
)

C++  Copy Code

public:
ETextStyle get_TextStyle ()
void put_TextStyle (
    ETextStyle value
)

 Property Value

A member of the ETextStyle enumeration. Initialized with FlowChart.TextStyle.

 Remarks

Sets the position and alignment of text rendered inside a box. Values can be any of these:

tsCenter

Single line of text, centered horizontally and vertically;

tsTop

Horizontally centered line of text at the top of the box;

tsBottom

Horizontally centered line of text at the bottom of the box;

tsLeft

Vertically centered line of text starting at the left side of the box;

tsRight

Vertically centered line of text ending at the right side of the box;

tsLeftML

Multiple left-aligned lines of text;

tsRightML

Multiple right-aligned lines of text;

tsCenterML

Multiple horizontally centered lines of text;

tsBelow

Text is displayed below the box, as for desktop icons. The maximal width of the text can be changed via IconTextWidth.

tsFitPolyTop

Text is formatted inside a polygonal shape, starting from the top. Valid for boxes of Style bsPolygon and bsShape.

tsFitPolyCenter

Text is formatted inside a polygonal shape, centered vertically. Valid for boxes of Style bsPolygon and bsShape.

tsFitPolyBottom

Text is formatted inside a polygonal shape, starting from the bottom. Valid for boxes of Style bsPolygon and bsShape.

 See Also