Word.CharacterWidth enum
Especifica el ancho de caracteres del texto en el rango especificado.
Comentarios
Conjunto de API: WordApiDesktop 1.3
Usada por
Ejemplos
// 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.");
});
Campos
| full = "Full" | Especifica caracteres de ancho completo. |
| half = "Half" | Especifica caracteres de ancho medio. |