Aspose::Pdf::Facades::FormattedText class

FormattedText class

Class which represents formatted text. Contains information about text and its color, size, style.

class FormattedText : public System::Object

Methods

MethodDescription
AddNewLineText(System::String)Adds a new line to the FormattedText object and sets the newLineText to the next line’s text.
AddNewLineText(System::String, float)Adds a new line to the FormattedText object and sets the newLineText to the next line’s text.
FormattedText()Initializes FormattedText.
FormattedText(System::String)Initializes FormattedText.
FormattedText(System::String, System::SharedPtr<FontColor>, FontStyle, EncodingType, bool, float)Initializes FormattedText.
FormattedText(System::String, System::SharedPtr<FontColor>, FontStyle, EncodingType, bool, float, float)Initialize FormattedText.
FormattedText(System::String, System::Drawing::Color, FontStyle, EncodingType, bool, float)Initializes FormattedText.
FormattedText(System::String, System::Drawing::Color, FontStyle, EncodingType, bool, float, float)Initializes FormattedText.
FormattedText(System::String, System::SharedPtr<FontColor>, System::SharedPtr<FontColor>, FontStyle, EncodingType, bool, float)Initializes FormattedText.
FormattedText(System::String, System::SharedPtr<FontColor>, System::SharedPtr<FontColor>, FontStyle, EncodingType, bool, float, float)Initializes FormattedText.
FormattedText(System::String, System::Drawing::Color, System::Drawing::Color, FontStyle, EncodingType, bool, float)Initializes FormattedText.
FormattedText(System::String, System::Drawing::Color, System::Drawing::Color, FontStyle, EncodingType, bool, float, float)Initializes FormattedText.
FormattedText(System::String, System::Drawing::Color, System::Drawing::Color, System::String, EncodingType, bool, float)Initializes FormattedText.
FormattedText(System::String, System::Drawing::Color, System::Drawing::Color)Initializes FormattedText.
FormattedText(System::String, System::Drawing::Color, System::String, EncodingType, bool, float)Initializes FormattedText.
get_TextHeight() constGets height of text.
get_TextWidth()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.

See Also