FreeTextAnnotation.SetTextStyle

SetTextStyle(RichTextFontStyles, string, double, Color)

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

public void SetTextStyle(RichTextFontStyles textStyles, string fontName, double fontSize, 
    Color fontColor)
ParameterTypeDescription
textStylesRichTextFontStylesStyle(s) applied for annotation text.
fontNameStringFont name applied for annotation text.
fontSizeDoubleFont size applied for annotation text.
fontColorColorFont color applied for annotation text.

See Also


SetTextStyle(int, int, RichTextFontStyles)

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

public void SetTextStyle(int fromInd, int toInd, RichTextFontStyles textStyles)
ParameterTypeDescription
fromIndInt32Starting index of the text fragment (from 0).
toIndInt32End index of the text fragment (counting from 0, this not included).
textStylesRichTextFontStylesStyle(s) applied for text fragment.

See Also