Class CursorHandler
Handler for performing simple operations with the cursor.
Remarks
Constructors
(constructor)(tw)
Constructs a new instance of the CursorHandler
class
Declaration
constructor(tw: ITextWhizzHolder);
Parameters
Properties
cursorChangeEvent
Declaration
get cursorChangeEvent(): EventObject<IPositionInText>;
Property Value
Remarks
Methods
getCurrentParagraphIndex()
Declaration
getCurrentParagraphIndex(): number;
Returns
getCurrentPosition()
Declaration
getCurrentPosition(): IPositionInText;
Returns
getCurrentWord()
Declaration
getCurrentWord(): ITextRange;
Returns
getFirstPosition()
Declaration
getFirstPosition(): IPositionInText;
Returns
getPositionByPoint(point)
Declaration
getPositionByPoint(point: IPoint): IPositionInText;
Parameters
Type |
Name |
Description |
IPoint |
point |
|
Returns
moveToDirection(direction)
Declaration
moveToDirection(direction: MoveDirectionType): boolean;
Parameters
Returns
setToPoint(point)
Declaration
setToPoint(point: IPoint): void;
Parameters
Type |
Name |
Description |
IPoint |
point |
|
Returns
setToPosition(position)
Declaration
setToPosition(position: IPositionInText): void;
Parameters
Returns