Word.SelectionMode enum
This enum sets where the cursor (insertion point) in the document is after a selection.
Remarks
Examples
// 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();
});
Fields
end = "End" | The cursor is at the end of the selection (just after the end of the selected range). |
select = "Select" | The entire range is selected. |
start = "Start" | The cursor is at the beginning of the selection (just before the start of the selected range). |
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Office Add-ins