Word.SelectionMode enum
文書内で選択した後にカーソル (カーソル) が置かれている場所を表します。
注釈
使用元
- Word.本文: select
- Word.ContentControl: select
- Word.フィールド: select
- Word.InlinePicture: select
- Word.段落: 選択
- Word.範囲: 選択
- Word.テーブル: 選択
- Word.TableRow: select
例
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/35-ranges/scroll-to-range.yaml
await Word.run(async (context) => {
// Select can be at the start or end of a range; this by definition moves the insertion point without selecting the range.
context.document.body.paragraphs.getLast().select(Word.SelectionMode.end);
await context.sync();
});
フィールド
| end = "End" | カーソルが選択範囲の最後 (選択した範囲の終了直後) にあります。 |
| select = "Select" | 範囲全体が選択されます。 |
| start = "Start" | カーソルが選択範囲の先頭 (選択した範囲の開始直前) にあります。 |