ParagraphFragment Class
A text fragment that contains a paragraph.
Declaration
public class ParagraphFragment extends TextFragment
Inherited Members
Inheritance
Constructors
ParagraphFragment() Constructor
Initializes a new instance of the ParagraphFragment class.
Declaration
public ParagraphFragment()
ParagraphFragment(RectangleF rect) Constructor
Initializes a new instance of the ParagraphFragment class with specified settings.
Declaration
public ParagraphFragment(RectangleF rect)
Parameters
| Name | Type | Description |
|---|---|---|
| rect | RectangleF | The rectangle that defines paragraph bounds. |
Methods
appendLine(String text) Method
Appends a line of text to the paragraph.
Declaration
public void appendLine(String text)
Parameters
| Name | Type | Description |
|---|---|---|
| text | String | The text to append as a new line. |
appendText(String text) Method
Appends text to the paragraph.
Declaration
public void appendText(String text)
Parameters
| Name | Type | Description |
|---|---|---|
| text | String | The text to append. |
getHeight() Method
Returns the paragraph height.
Declaration
public float getHeight()
Returns
| Type | Description |
|---|---|
| float | The paragraph height. |
getStringFormat() Method
Returns the string formatting settings for the paragraph.
Declaration
public DXStringFormat getStringFormat()
Returns
| Type | Description |
|---|---|
| DXStringFormat | The string formatting settings for the paragraph. |
getText() Method
Returns the paragraph text.
Declaration
public String getText()
Returns
| Type | Description |
|---|---|
| String | The paragraph text. |
getWidth() Method
Returns the paragraph width.
Declaration
public float getWidth()
Returns
| Type | Description |
|---|---|
| float | The paragraph width. |
setHeight(float value) Method
Sets the paragraph height.
Declaration
public void setHeight(float value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | float | The paragraph height. |
setStringFormat(DXStringFormat value) Method
Sets string formatting settings for the paragraph.
Declaration
public void setStringFormat(DXStringFormat value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | DXStringFormat | String formatting settings for the paragraph. |
setText(String value) Method
Sets the paragraph text.
Declaration
public void setText(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The paragraph text. |
setWidth(float value) Method
Sets the paragraph width.
Declaration
public void setWidth(float value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | float | The paragraph width. |