Word.Alignment enum

Representa la alineación horizontal del texto.

Comentarios

Conjunto de API: WordApi 1.1

Usada por

Ejemplos

// 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"

Alineación con el centro.

justified = "Justified"

Alineación totalmente justificada.

left = "Left"

Alineación a la izquierda.

mixed = "Mixed"

Alineación horizontal mixta.

right = "Right"

Alineación a la derecha.

unknown = "Unknown"

Alineación desconocida.