Word.CharacterWidth enum
Spécifie la largeur des caractères du texte dans la plage spécifiée.
Remarques
Jeu d’API : WordApiDesktop 1.3
Utilisateur
Exemples
// 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.");
});
Champs
| full = "Full" | Spécifie des caractères à pleine chasse. |
| half = "Half" | Spécifie les caractères à demi-chasse. |