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"