ASP.NET Pack Programmer's Guide
TextFormat Members
Constructors Methods
 


Specifies the format and alignment of text within a diagram item. A TextFormat object can be assigned to nodes by their setTextFormat method. Tables provide a setCaptionFormat method and their cells provide a setTextFormat method to let you set the format and alignment of text within a table.

The following tables list the members exposed by the TextFormat type.

 Public Constructors

  Name Description

TextFormat

Initializes a new TextFormat instance.

 Public Methods

  Name Description

clone

Creates a copy of this TextFormat.

drawText

 

equals

 

getHorizontalAlign

Gets the horizontal text alignment.

getNoWrap

Gets a value indicating whether automatic text wrapping is disabled. If wrapping is enabled, the control automatically wraps the text to a new line when there is not enough space to fit it in one line. If automatic wrapping is disabled, the control wraps text only at new-line characters.

getRightToLeft

 

getVerticalAlign

Gets the vertical text alignment.

getWrapAtCharacter

Gets a value indicating whether text can be wrapped to a new line at an arbitrary character, or only after a whole word.

setHorizontalAlign

Sets the horizontal text alignment.

setNoWrap

Enables or disables automatic text wrapping. If wrapping is enabled, the control automatically wraps the text to a new line when there is not enough space to fit it in one line. If automatic wrapping is disabled, the control wraps text only at new-line characters.

setRightToLeft

 

setVerticalAlign

Sets the vertical text alignment.

setWrapAtCharacter

Sets a value indicating whether text can be wrapped to a new line at an arbitrary character, or only after a whole word.

 See Also

TextFormat Class
com.mindfusion.diagramming Namespace