Movement unit used in Move methods for programmatic movements over a document.
[Visual Basic]
Public Enum MoveUnitHorizontal
[C#]public enum MoveUnitHorizontal
Remarks
Example
Shows how to extend selection by moving its start and end.
[C#]
// Move the start of the selection 11 characters to the right.
// In this case it places the end of the selection at the same position too.
editorControl.Selection.MoveStart(MoveUnitHorizontal.Character, 11);
// Move the end of the selection 6 characters to the right. The selection will be 6 characters long.
editorControl.Selection.MoveEnd(MoveUnitHorizontal.Character, 6);
editorControl.Selection.Range.Font.Bold = true;
// Obtain the selected text.
Console.WriteLine(editorControl.Selection.Range.Text);
[Visual Basic]
' Move the start of the selection 11 characters to the right.
' In this case it places the end of the selection at the same position too.
editorControl.Selection.MoveStart(MoveUnitHorizontal.Character, 11)
' Move the end of the selection 6 characters to the right. The selection will be 6 characters long.
editorControl.Selection.MoveEnd(MoveUnitHorizontal.Character, 6)
editorControl.Selection.Range.Font.Bold = True
' Obtain the selected text.
Console.WriteLine(editorControl.Selection.Range.Text)
Members
| Member Name | Description | Value |
| Character | Movement is made to the specified character. | 0 |
Requirements
Namespace: Aspose.Editor.Client
Assembly: Aspose.Editor.Client (in Aspose.Editor.Client.dll)
See Also
Aspose.Editor.Client Namespace | Selection