RichTextKit v0.4

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);


Topten.RichTextKit.CaretPosition position

The caret position to select from

SelectionKind kind

The kind of selection to return



Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.