Word.Alignment enum
Stellt die horizontale Ausrichtung von Text dar.
Hinweise
Verwendet von
- Word. Liste: setLevelAlignment
- Word. ListLevel: Ausrichtung
- Word. Absatz: Ausrichtung
- Word. ParagraphFormat: Ausrichtung
- Word. Tabelle: Ausrichtung, horizontalAusrichtung
- Word. TableCell: horizontalAlignment
- Word. TableRow: horizontalAlignment
- Word. TableStyle: Ausrichtung
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 |