Freigeben über


Excel.ShapeTextHorizontalAlignment enum

Gibt die horizontale Ausrichtung für den Textrahmen in einer Form an.

Hinweise

[ API-Satz: ExcelApi 1.9 ]

Beispiele

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/44-shape/shape-textboxes.yaml

await Excel.run(async (context) => {
    const shapes = context.workbook.worksheets.getItem("Shapes").shapes;
    const textbox = shapes.getItem("Textbox");
    textbox.textFrame.horizontalAlignment = Excel.ShapeTextHorizontalAlignment.center;
    await context.sync();
});

Felder

center = "Center"
distributed = "Distributed"
justify = "Justify"
justifyLow = "JustifyLow"
left = "Left"
right = "Right"
thaiDistributed = "ThaiDistributed"