Word.Alignment enum

Representa o alinhamento horizontal do texto.

Comentários

Conjunto de APIs: WordApi 1.1

Usada por

Exemplos

// 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();
});

Campos

centered = "Centered"

Alinhamento ao centro.

justified = "Justified"

Alinhamento totalmente justificado.

left = "Left"

Alinhamento à esquerda.

mixed = "Mixed"

Alinhamento horizontal misto.

right = "Right"

Alinhamento à direita.

unknown = "Unknown"

Alinhamento desconhecido.