Edit

Share via


Word.SelectionMoveLeftRightOptions interface

Represents the options for the Selection.moveLeft and Selection.moveRight methods.

Remarks

[ API set: WordApiDesktop 1.4 ]

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 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.

unit

If provided, specifies the unit by which the selection is to be moved. The default value is character.

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

[ API set: WordApiDesktop 1.4 ]

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

[ API set: WordApiDesktop 1.4 ]

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"

Remarks

[ API set: WordApiDesktop 1.4 ]