Word.SelectionMoveLeftRightOptions interface
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
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
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
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"