Word.Alignment enum
Representa o alinhamento horizontal do texto.
Comentários
Usada por
- Word. Lista: setLevelAlignment
- Word. ListLevel: alinhamento
- Word. Parágrafo: alinhamento
- Word. ParagraphFormat: alinhamento
- Word. Tabela: alinhamento, alinhamento horizontal
- Word. TableCell: horizontalAlignment
- Word. TableRow: horizontalAlignment
- Word. TableStyle: alinhamento
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. |