Word.Alignment enum

Stellt die horizontale Ausrichtung von Text dar.

Hinweise

API-Satz: WordApi 1.1

Verwendet von

Beispiele

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

Felder

centered = "Centered"

Ausrichtung zur Mitte.

justified = "Justified"

Vollständig ausgerichtete Ausrichtung.

left = "Left"

Ausrichtung nach links.

mixed = "Mixed"

Gemischte horizontale Ausrichtung.

right = "Right"

Ausrichtung nach rechts.

unknown = "Unknown"

Unbekannte Ausrichtung