Word.CharacterWidth enum

Gibt die Zeichenbreite des Texts im angegebenen Bereich an.

Hinweise

API-Satz: WordApiDesktop 1.3

Verwendet von

Beispiele

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/28-formatting/apply-character-layout-desktop.yaml

// Converts the first paragraph's Latin characters and digits to full width.
await Word.run(async (context) => {
    const paragraphRange: Word.Range = context.document.body.paragraphs.getFirst().getRange(Word.RangeLocation.content);
    const characterWidth: Word.CharacterWidth = Word.CharacterWidth.full;
    paragraphRange.characterWidth = characterWidth;
    await context.sync();
    console.log("Converted the first paragraph's Latin characters and digits to full width.");
});

Felder

full = "Full"

Gibt Zeichen mit voller Breite an.

half = "Half"

Gibt Zeichen halber Breite an.