SetSelectionCmd
Classes
SetSelectionCmd
The command to set the text selection by start and end points.
Implements
Constructors
Constructor
new SetSelectionCmd(textManager, initData): SetSelectionCmd;
Parameters
| Parameter | Type |
|---|---|
textManager | ITextManager |
initData | SetSelectionCmdData |
Returns
Methods
execute()
execute(): boolean;
Executes the command.
Returns
boolean
true if changes were made, false otherwise.
Implementation of
SetSelectionCmdData
Data required to initialize the command.
Constructors
Constructor
new SetSelectionCmdData(startPoint, endPoint): SetSelectionCmdData;
Parameters
| Parameter | Type |
|---|---|
startPoint | IPoint |
endPoint | IPoint |
Returns
Properties
endPoint
endPoint: IPoint;
The end point for text selection.
startPoint
startPoint: IPoint;
The starting point for text selection.