Movement unit used in Move methods for programmatic movements over a document.
[Visual Basic]
Public Enum MoveUnitVertical
[C#]public enum MoveUnitVertical
Remarks
Example
Selects several lines in the document.
[C#]
// Move the cursor to the start of the document.
editorControl.Selection.Range.SetStartEnd(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);
// Obtain text of the selected lines.
Console.WriteLine(editorControl.Selection.Range.Text);
[Visual Basic]
' Move the cursor to the start of the document.
editorControl.Selection.Range.SetStartEnd(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)
' Obtain text of the selected lines.
Console.WriteLine(editorControl.Selection.Range.Text)
Members
| Member Name | Description | Value |
| Line | Movement is made to the specified line. | 0 |
| Paragraph | Movement is made to the first line of the paragraph. | 1 |
| Screen | Movement is made to the line which is specified number of screens away from active end of selection. | 2 |
Requirements
Namespace: Aspose.Editor.Desktop
Assembly: Aspose.Editor.Desktop (in Aspose.Editor.Desktop.dll)
See Also
Aspose.Editor.Desktop Namespace | Selection