TextDocument.GetSelectionRange Method
Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Editor
Declaring Type: TextDocument
Given a caret position, find an enclosing selection range for the current word, line, paragraph or document
public Topten.RichTextKit.TextRange GetSelectionRange(Topten.RichTextKit.CaretPosition position, SelectionKind kind);
Parameters
| Topten.RichTextKit.CaretPosition position | The caret position to select from |
| SelectionKind kind | The kind of selection to return |
Returns
| Topten.RichTextKit.TextRange |
