Moves selection to the current text range.
Namespace:
C1.Win.XmlEditorAssembly: C1.Win.XmlEditor.2 (in C1.Win.XmlEditor.2.dll)
Syntax
| C# |
|---|
public void Select() |
| Visual Basic (Declaration) |
|---|
Public Sub Select |
Examples
The following example replaces the selected text with a new value and moves selection to the end of the new text.
Copy CodeC#
C1TextRange range = _editor.Selection.Clone();
range.Text = value;
//after inserting text we must collapse selection to the end
range.Normalize();
range.Start.MoveTo(range.End);
range.Select(); |