FormattedText
Inheritance: java.lang.Object, com.aspose.pdf.facades.FormattedText
public final class FormattedText extends Object
Class which represents formatted text. Contains information about text and its color, size, style.
Constructors
| Constructor | Description |
|---|---|
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
| FormattedText | Initializes FormattedText. |
Methods
| Method | Description |
|---|---|
| addNewLineText | Adds a new line to the FormattedText object and sets the newLineText to the next line’s text. |
| addNewLineText | Adds a new line to the FormattedText object and sets the newLineText to the next line’s text. |
| getBackColor | Internal Gets back color |
| getFirstLine | Gets first line |
| getFont | Gets font |
| getFontSize | Gets font size |
| getText | For Internal usage only |
| getTextColor | Internal Gets text color |
| getTextHeight | Gets height of text. |
| getTextWidth | Gets width of text. |
| isCjk | Checks if text is CJK (Chinese, Japanese, or Korean). |
| setCjkFontStyle | Changes FormattedText font style for CJK (Chinese, Japanese, or Korean) font. |
FormattedText
public FormattedText()
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
FormattedText
Initializes FormattedText.
addNewLineText
Adds a new line to the FormattedText object and sets the newLineText to the next line’s text.
addNewLineText
Adds a new line to the FormattedText object and sets the newLineText to the next line’s text.
getBackColor
public com.aspose.ms.System.Drawing.Color getBackColor()
Internal Gets back color
Returns: Color element
getFirstLine
public String getFirstLine()
Gets first line
Returns: String value
getFont
public Font getFont()
Gets font
Returns: Font element
getFontSize
public float getFontSize()
Gets font size
Returns: float value
getText
public com.aspose.ms.System.Collections.Generic.List< String > getText()
For Internal usage only
Returns: Internal object
getTextColor
public com.aspose.ms.System.Drawing.Color getTextColor()
Internal Gets text color
Returns: Color element
getTextHeight
public float getTextHeight()
Gets height of text.
Returns: float value
getTextWidth
public float getTextWidth()
Gets width of text.
Returns: float value
isCjk
public final boolean isCjk()
Checks if text is CJK (Chinese, Japanese, or Korean).
Returns: True if text is CJK. Otherwise false.
setCjkFontStyle
public final void setCjkFontStyle()
Changes FormattedText font style for CJK (Chinese, Japanese, or Korean) font.