Aspose.Editor supports most of the common text editing operations available in modern word processors:
- Enter text in English and European languages.
- Move caret (text insertion point) using keys, various key combinations and mouse.
- Scroll through the document using keys, scrollbars and mouse wheel.
- Select any fragment of text using keys and mouse.
- Programmatically select and modify sections, paragraphs, pages, lines or characters.
The underlying implementation of Aspose.Editor uses Unicode for text. Right-to-left languages and complex scripts are not yet supported.
Editing and selecting text in Aspose.Editor.
Example code that shows how to modify a selection programmatically.
[C#]
// Move the cursor to the start of the document.
editorControl.Selection.Range.SetRange(0, 0);
// Move the cursor three lines down.
editorControl.Selection.Move(MoveUnitVertical.Line, 3, false);
// Extend the selection by two lines down.
editorControl.Selection.Move(MoveUnitVertical.Line, 2, true);
[VB.NET]
' Move the cursor to the start of the document.
editorControl.Selection.Range.SetRange(0, 0)
' Move the cursor three lines down.
editorControl.Selection.Move(MoveUnitVertical.Line, 3, False)
' Extend the selection by two lines down.
editorControl.Selection.Move(MoveUnitVertical.Line, 2, True)