Word.SelectionMoveLeftRightOptions interface
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the options for the Selection.moveLeft and Selection.moveRight methods.
Remarks
Properties
count | If provided, specifies the number of units the selection is to be moved. The default value is 1. |
extend | If provided, specifies the type of movement. The movement direction (left or right) is according to the calling method. If set to |
unit | If provided, specifies the unit by which the selection is to be moved. The default value is |
Property Details
count
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the number of units the selection is to be moved. The default value is 1.
count?: number;
Property Value
number
Remarks
extend
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the type of movement. The movement direction (left or right) is according to the calling method. If set to move
, the selection is collapsed to the endpoint and moved in the appropriate direction. If set to extend
, the selection is extended in the appropriate direction. The default value is move
.
extend?: Word.MovementType | "Move" | "Extend";
Property Value
Word.MovementType | "Move" | "Extend"
Remarks
unit
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the unit by which the selection is to be moved. The default value is character
.
unit?: Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item";
Property Value
Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item"