PowerPoint.ParagraphHorizontalAlignment enum
Représente l’alignement horizontal de PowerPoint.TextFrame dans un Fichier PowerPoint.Shape.
Remarques
[ Ensemble d’API : PowerPointApi 1.4 ]
Exemples
// 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();
});
Champs
| center = "Center" | Aligner le texte au centre. |
| distributed = "Distributed" | Distribue les mots du texte sur une ligne de texte entière. |
| justify = "Justify" | Aligner le texte afin qu’il soit justifié sur toute la ligne. |
| justifyLow = "JustifyLow" | Spécifie l’alignement ou l’ajustement de la longueur du kashida dans le texte arabe. |
| left = "Left" | Aligner le texte sur la marge de gauche. |
| right = "Right" | Aligner le texte sur la marge droite. |
| thaiDistributed = "ThaiDistributed" | Distribue le texte thaï, car chaque caractère est traité comme un mot. |