Word.Alignment enum

Représente l’alignement horizontal du texte.

Remarques

Jeu d’API : WordApi 1.1

Utilisateur

Exemples

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/25-paragraph/paragraph-properties.yaml

// Centers the last paragraph between the document margins.
await Word.run(async (context) => {
  const lastParagraph: Word.Paragraph = context.document.body.paragraphs.getLast();
  const alignment: Word.Alignment = Word.Alignment.centered;
  lastParagraph.alignment = alignment;

  await context.sync();
});

Champs

centered = "Centered"

Alignement au centre.

justified = "Justified"

Alignement pleinement justifié.

left = "Left"

Alignement à gauche.

mixed = "Mixed"

Alignement horizontal mixte.

right = "Right"

Alignement à droite.

unknown = "Unknown"

Alignement inconnu.