Word.SelectionMoveOptions interface
表示 Selection.move 方法的选项。
属性
| count | 如果提供,则指定要移动范围或选择的单位数。 如果为正数,则 |
| unit | 如果提供,则指定结束字符位置移动的单位。 默认值为 |
属性详细信息
count
如果提供,则指定要移动范围或选择的单位数。 如果为正数,则 count 对象将折叠到其结束位置,并在文档中向后移动指定单位数。 如果为负数,则 count 对象将折叠到其起始位置并向前移动指定数量的单位。 默认值为 1。 还可以在使用move该方法之前使用 Selection.collapse 方法来控制折叠方向。 如果该区域或所选内容位于一个单位的中间,或者不能折叠,将其移动到的开头或结尾的部门计为移动它一个完整的单元。
count?: number;
属性值
number
注解
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"