Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Word.SelectionMoveStartEndOptions interface
- Package:
- word
Represents the options for the Selection.moveEnd and Selection.moveStart methods.
Properties
| count | If provided, specifies the number of units to move. The affected character position (start or end) is according to the calling method. If this number is positive, the position is moved forward in the document. If this number is negative, the position is moved backward. If the affected position encounters the other position, the selection is collapsed and both the start and end positions move together. The default value is 1. |
| unit | If provided, specifies the unit by which the selection's start or end position (per the calling method) is to be moved. The default value is |
Property Details
count
If provided, specifies the number of units to move. The affected character position (start or end) is according to the calling method. If this number is positive, the position is moved forward in the document. If this number is negative, the position is moved backward. If the affected position encounters the other position, the selection is collapsed and both the start and end positions move together. The default value is 1.
count?: number;
Property Value
number
Remarks
unit
If provided, specifies the unit by which the selection's start or end position (per the calling method) 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"
Remarks
Office Add-ins
Feedback
Was this page helpful?
