Excel.ShapeAutoSize enum

Bestimmt den zulässigen Typ der automatischen Größenanpassung.

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.autoSizeSetting = Excel.ShapeAutoSize.autoSizeShapeToFitText;
    await context.sync();
});

Felder

autoSizeMixed = "AutoSizeMixed"

Eine Kombination von automatischen Größenschemas wird verwendet.

autoSizeNone = "AutoSizeNone"

Keine automatische Größenänderung.

autoSizeShapeToFitText = "AutoSizeShapeToFitText"

Die Form wird an die Größe des Texts angepasst.

autoSizeTextToFitShape = "AutoSizeTextToFitShape"

Der Text wird an die Größe der Form angepasst.