Word.OperationUnit enum
Gibt die Maßeinheit an, die in Word Vorgängen verwendet wird.
Hinweise
[ API-Satz: WordApiDesktop 1.4 ]
Beispiele
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/55-selection/get-previous-next-range.yaml
// Gets the range of the next word relative to the current selection.
await Word.run(async (context) => {
const options: Word.SelectionNextOptions = {
unit: Word.OperationUnit.word,
count: 1,
};
const nextRange: Word.Range = context.document.selection.getNextRange(options);
nextRange.load("text");
await context.sync();
console.log(`Next word: "${nextRange.text}"`);
});
Felder
| cell = "Cell" | Gibt eine Zelleneinheit an. |
| character = "Character" | Gibt eine Zeicheneinheit an. |
| characterFormat = "CharacterFormat" | Gibt eine Zeichenformateinheit an. |
| column = "Column" | Gibt eine Spalteneinheit an. |
| item = "Item" | Gibt eine Elementeinheit an. |
| line = "Line" | Gibt eine Linieneinheit an. |
| paragraph = "Paragraph" | Gibt eine Absatzeinheit an. |
| paragraphFormat = "ParagraphFormat" | Gibt eine Absatzformateinheit an. |
| row = "Row" | Gibt eine Zeileneinheit an. |
| screen = "Screen" | Gibt eine Bildschirmeinheit an. |
| section = "Section" | Gibt eine Abschnittseinheit an. |
| sentence = "Sentence" | Gibt eine Satzeinheit an. |
| story = "Story" | Gibt eine Story-Einheit an. |
| table = "Table" | Gibt eine Tabelleneinheit an. |
| window = "Window" | Gibt eine Fenstereinheit an. |
| word = "Word" | Gibt eine Worteinheit an. |