Aspose::Pdf::Annotations::FreeTextAnnotation::SetTextStyle metod

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

Ställer in formateringen som bestäms av parametern textStyle för ett textfragment från index fromInd till index toInd.

void Aspose::Pdf::Annotations::FreeTextAnnotation::SetTextStyle(int32_t fromInd, int32_t toInd, RichTextFontStyles textStyles)
ParameterTypBeskrivning
fromIndint32_tStartindex för textfragmentet (från 0).
toIndint32_tSlutindex för textfragmentet (räknat från 0, detta inkluderas inte).
textStylesRichTextFontStylesStil(ar) som tillämpas på textfragmentet.

Se även

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

Ställer in formateringen som bestäms av parametern textStyle för all annotationstext.

void Aspose::Pdf::Annotations::FreeTextAnnotation::SetTextStyle(RichTextFontStyles textStyles, const System::String &fontName, double fontSize, System::Drawing::Color fontColor)
ParameterTypBeskrivning
textStylesRichTextFontStylesStil(ar) som tillämpas på annoteringstexten.
fontNameconst System::String&Typsnittsnamn som tillämpas på annoteringstexten.
fontSizedoubleTypsnittsstorlek som tillämpas på annoteringstexten.
fontColorSystem::Drawing::ColorTypsnittsfärg som tillämpas på annoteringstexten.

Se även