Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

About selections

siegi44 edited this page Apr 5, 2008 · 2 revisions

SelctionManager

ICSharpCode.TextEditor.TextArea.SelectionManager provides following members:

Methods

ClearSelection() Removes the current selection
IsSelected(int offset) Returns true, if the offset is in the selected range.

Properties

HasSomethingSelected Returns true, if there is something selected in the TextArea, false if not.
SelectedText Returns the currently selected text.
SelectionCollection A collection of ISelection objects, which each represents a selection. Currently maximal 1 selection is possible.
SelectionIsReadonly Returns true, if the current selection is readonly, false if not.
Clone this wiki locally