Aspose::Pdf::Annotations::FreeTextAnnotation::SetTextStyle method

FreeTextAnnotation::SetTextStyle(int32_t, int32_t, RichTextFontStyles) method

Sets the formatting determined by the parameter textStyle for a text fragment from fromInd index to toInd index.

void Aspose::Pdf::Annotations::FreeTextAnnotation::SetTextStyle(int32_t fromInd, int32_t toInd, RichTextFontStyles textStyles)
ParameterTypeDescription
fromIndint32_tStarting index of the text fragment (from 0).
toIndint32_tEnd index of the text fragment (counting from 0, this not included).
textStylesRichTextFontStylesStyle(s) applied for text fragment.

See Also

FreeTextAnnotation::SetTextStyle(RichTextFontStyles, const System::String&, double, System::Drawing::Color) method

Sets the formatting determined by the parameter textStyle for all annotation text.

void Aspose::Pdf::Annotations::FreeTextAnnotation::SetTextStyle(RichTextFontStyles textStyles, const System::String &fontName, double fontSize, System::Drawing::Color fontColor)
ParameterTypeDescription
textStylesRichTextFontStylesStyle(s) applied for annotation text.
fontNameconst System::String&Font name applied for annotation text.
fontSizedoubleFont size applied for annotation text.
fontColorSystem::Drawing::ColorFont color applied for annotation text.

See Also