Class SelectionHandler
Handler for performing simple operations with text selection.
Remarks
Constructors
(constructor)(tw)
Constructs a new instance of the SelectionHandler
class
Declaration
constructor(tw: ITextWhizzHolder);
Parameters
Properties
selectionChangeEvent
Text selection change event.
Declaration
get selectionChangeEvent(): EventObject<ITextRange | null>;
Property Value
Remarks
Methods
getSelectionRange()
Declaration
getSelectionRange(): ITextRange;
Returns
resetSelection(position)
Declaration
resetSelection(position?: IPositionInText): void;
Parameters
Returns
setSelectionByPoints(startPoint, endPoint)
Declaration
setSelectionByPoints(startPoint: IPoint, endPoint: IPoint): void;
Parameters
Returns
setSelectionByPositions(startPosition, endPosition)
Declaration
setSelectionByPositions(startPosition: IPositionInText, endPosition: IPositionInText): void;
Parameters
Returns
setSelectionByRange(selection)
Declaration
setSelectionByRange(selection: ITextRange): void;
Parameters
Returns
setSelectionToPosition(position)
Declaration
setSelectionToPosition(position: IPositionInText): void;
Parameters
Returns