Skip to main content

SetSelectionCmd

Classes

SetSelectionCmd

The command to set the text selection by start and end points.

Implements

Constructors

Constructor
new SetSelectionCmd(textManager, initData): SetSelectionCmd;
Parameters
ParameterType
textManagerITextManager
initDataSetSelectionCmdData
Returns

SetSelectionCmd

Methods

execute()
execute(): boolean;

Executes the command.

Returns

boolean

true if changes were made, false otherwise.

Implementation of

ICommand.execute


SetSelectionCmdData

Data required to initialize the command.

Constructors

Constructor
new SetSelectionCmdData(startPoint, endPoint): SetSelectionCmdData;
Parameters
ParameterType
startPointIPoint
endPointIPoint
Returns

SetSelectionCmdData

Properties

endPoint
endPoint: IPoint;

The end point for text selection.

startPoint
startPoint: IPoint;

The starting point for text selection.

Was this page helpful?