Neodynamic ImageDraw SDK for .NET
RichTextElement
A RichTextElement – represented by Neodynamic.SDK.ImageDraw.RichTextElement class – lets you to render rich text by mixing words in different fonts, sizes, capitalizations, foreground colors, etc.


Rich Text Features
The RichTextElement class features a property named RichText which must be set up with a string containing the ImageDraw rich text markup. ImageDraw rich text markup is composed of TextSpan objects. A TextSpan object is used to indicate a text inline container within the whole rich text content.

The TextSpan object features the following markup:

<TextSpan FontName="" FontUnit="" FontSize="" FontBold="" FontItalic="" FontUnderline="" FontStrikeout="" CustomFontFile="" CustomFontFileFamilyIndex="" ForeColor="" BackColor="" BaselineOffset="" Kerning="" Text="" />


Description of each attributes/properties of the TextSpan object:

Syntax sample:

TextElement Output Sample:

RichTextElement Output Sample

Applying Actions (Imaging Effects) on RichTextElement objects

RichTextElement can be "affected" by more than one Action due to it features an Actions property of type Neodynamic.SDK.ImageDraw.ActionCollection.

Learn more about Actions.