Compartir a través de


PowerPoint.ParagraphHorizontalAlignment enum

Representa la alineación horizontal del PowerPoint.TextFrame en una powerpoint.shape.

Comentarios

[ Conjunto de API: PowerPointApi 1.4 ]

Ejemplos

// 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"

Alinee el texto en el centro.

distributed = "Distributed"

Distribuye las palabras de texto en una línea de texto completa.

justify = "Justify"

Alinee el texto para que se justifique en toda la línea.

justifyLow = "JustifyLow"

Especifica la alineación o ajuste de la longitud de kashida en texto árabe.

left = "Left"

Alinee el texto al margen izquierdo.

right = "Right"

Alinee el texto al margen derecho.

thaiDistributed = "ThaiDistributed"

Distribuye el texto tailandés especialmente, porque cada carácter se trata como una palabra.