Word.SelectionMode enum
Stellt dar, wo der Cursor (Einfügemarke) im Dokument nach einer Auswahl festgelegt wird.
Hinweise
Beispiele
// 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();
});
Felder
| end = "End" | Der Cursor befindet sich am Ende der Auswahl (direkt nach dem Ende des ausgewählten Bereichs). |
| select = "Select" | Der gesamte Bereich ist ausgewählt. |
| start = "Start" | Der Cursor befindet sich am Anfang der Auswahl (kurz vor dem Anfang des ausgewählten Bereichs). |