Word.SelectionMode enum
Gibt die Stelle an, an der der Cursor (Einfügemarke) im Dokument nach einer Auswahl gesetzt wird.
Hinweise
Verwendet von
- Word. Text:Auswählen
- Word. ContentControl: select
- Word. Feld: Auswählen
- Word. InlinePicture: select
- Word. Absatz: Auswählen
- Word. Bereich: Auswählen
- Word. Tabelle: Auswählen
- Word. Tabellenzeile: Auswählen
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 hinter 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). |