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.
Name | Description | |
---|---|---|
![]() |
Initializes a new TextFormat instance. |
Name | Description | |
---|---|---|
![]() |
Creates a copy of this TextFormat. |
|
![]() |
|
|
![]() |
|
|
![]() |
Gets the horizontal text alignment. |
|
![]() |
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. |
|
![]() |
|
|
![]() |
Gets the vertical text alignment. |
|
![]() |
Gets a value indicating whether text can be wrapped to a new line at an arbitrary character, or only after a whole word. |
|
![]() |
Sets the horizontal text alignment. |
|
![]() |
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. |
|
![]() |
|
|
![]() |
Sets the vertical text alignment. |
|
![]() |
Sets a value indicating whether text can be wrapped to a new line at an arbitrary character, or only after a whole word. |