Word.SelectionMoveLeftRightOptions interface

表示 Selection.moveLeft 和 Selection.moveRight 方法的选项。

注解

[ API 集:WordApiDesktop 1.4 ]

属性

count

如果提供,则指定要移动所选内容的单位数。 默认值为 1。

extend

如果提供,则指定移动类型。 (向左或向右) 移动方向取决于调用方法。 如果设置为 move,则所选内容将折叠到终结点,并按照相应的方向移动。 如果设置为 extend,则选择将按照适当的方向扩展。 默认值 move为 。

unit

如果已提供,则指定要移动所选内容的单位。 默认值 character为 。

属性详细信息

count

如果提供,则指定要移动所选内容的单位数。 默认值为 1。

count?: number;

属性值

number

注解

[ API 集:WordApiDesktop 1.4 ]

extend

如果提供,则指定移动类型。 (向左或向右) 移动方向取决于调用方法。 如果设置为 move,则所选内容将折叠到终结点,并按照相应的方向移动。 如果设置为 extend,则选择将按照适当的方向扩展。 默认值 move为 。

extend?: Word.MovementType | "Move" | "Extend";

属性值

Word.MovementType | "Move" | "Extend"

注解

[ API 集:WordApiDesktop 1.4 ]

unit

如果已提供,则指定要移动所选内容的单位。 默认值 character为 。

unit?: Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item";

属性值

Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item"

注解

[ API 集:WordApiDesktop 1.4 ]