PowerPoint.ParagraphHorizontalAlignment enum
Representa o alinhamento horizontal do PowerPoint.TextFrame num PowerPoint.Shape.
Comentários
[ Conjunto de API: PowerPointApi 1.4 ]
Exemplos
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/powerpoint/shapes/add-modify-tables.yaml
// Specifies the horizontal and vertical alignments of the cells in a table.
await PowerPoint.run(async (context) => {
const shapes = context.presentation.getSelectedSlides().getItemAt(0).shapes;
// Add a table, specifying horizontal and vertical alignment.
shapes.addTable(3, 4, {
values: [
["A", "BB", "CCC", "DDDD"],
["E", "FF", "GGG", "HHHH"],
["1", "12", "123", "1234"]
],
uniformCellProperties: {
horizontalAlignment: PowerPoint.ParagraphHorizontalAlignment.justify,
verticalAlignment: PowerPoint.TextVerticalAlignment.middle
}
});
await context.sync();
});
Campos
| center = "Center" | Alinhar texto no centro. |
| distributed = "Distributed" | Distribui as palavras de texto por uma linha de texto inteira. |
| justify = "Justify" | Alinhe o texto para que seja justificado em toda a linha. |
| justifyLow = "JustifyLow" | Especifica o alinhamento ou ajuste do comprimento do kashida no texto árabe. |
| left = "Left" | Alinhar texto à margem esquerda. |
| right = "Right" | Alinhar texto à margem direita. |
| thaiDistributed = "ThaiDistributed" | Distribui o texto tailandês especialmente, porque cada caráter é tratado como uma palavra. |