With Aspose.Editor, end users can select text and apply character formatting using the built-in Font dialog box. Developers can modify formatting of any fragment of text programmatically.
The following character formatting is displayed and can be modified:
- Font name, size, style
- Font color
- Small caps, all caps
- Superscript, subscript
- Underline pattern and color
Character formatting available in Aspose.Editor.
Font dialog box built into Aspose.Editor.
Code example that shows how to modify character formatting.
[C#]
Document doc = new Document();
Range range = doc.GetRange();
range.Text = "Hello World!";
range.Font.Name = "Arial";
range.Font.Size = 48;
range.Font.Italic = true;
range.Font.Color = Color.Red;
[VB.NET]
Dim doc As Document = New Document()
Dim range As Range = doc.GetRange()
range.Text = "Hello World!"
range.Font.Name = "Arial"
range.Font.Size = 48
range.Font.Italic = True
range.Font.Color = Color.Red