Aspose::Pdf::Annotations::FreeTextAnnotation::SetTextStyle method
Contents
[
Hide
]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)
| Parameter | Type | Description |
|---|---|---|
| fromInd | int32_t | Starting index of the text fragment (from 0). |
| toInd | int32_t | End index of the text fragment (counting from 0, this not included). |
| textStyles | RichTextFontStyles | Style(s) applied for text fragment. |
See Also
- Enum RichTextFontStyles
- Class FreeTextAnnotation
- Namespace Aspose::Pdf::Annotations
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| textStyles | RichTextFontStyles | Style(s) applied for annotation text. |
| fontName | const System::String& | Font name applied for annotation text. |
| fontSize | double | Font size applied for annotation text. |
| fontColor | System::Drawing::Color | Font color applied for annotation text. |
See Also
- Enum RichTextFontStyles
- Class String
- Class Color
- Class FreeTextAnnotation
- Namespace Aspose::Pdf::Annotations
- Library Aspose.PDF for C++