Movement units used in HomeKey and EndKey methods.
[Visual Basic]
Public Enum JumpUnit
Remarks
Example
Selects the current line in the editor control.
[C#]
// Move the selection current line, collapse selection.
editorControl.Selection.HomeKey(JumpUnit.Line, false);
// Extend the selection to the end of the current line.
editorControl.Selection.EndKey(JumpUnit.Line, true);
// Obtain text of the current line.
Console.WriteLine(editorControl.Selection.Range.Text);
[Visual Basic]
' Move the selection current line, collapse selection.
editorControl.Selection.HomeKey(JumpUnit.Line, False)
' Extend the selection to the end of the current line.
editorControl.Selection.EndKey(JumpUnit.Line, True)
' Obtain text of the current line.
Console.WriteLine(editorControl.Selection.Range.Text)
Members
| Member Name | Description | Value |
| Line | Movement is made to the start or end of specified line. | 0 |
| Story | Movement is made to the start or end of the story of selection. | 1 |
Requirements
Namespace: Aspose.Editor.Desktop
Assembly: Aspose.Editor.Desktop (in Aspose.Editor.Desktop.dll)
See Also
Aspose.Editor.Desktop Namespace | Selection