Excel.CellPropertiesFillLoadOptions interface

Gibt an, welche Eigenschaften für das format.fill -Objekt geladen werden sollen.

Hinweise

[ API-Satz: ExcelApi 1.9 ]

Eigenschaften

color

Gibt an, ob die color Eigenschaft geladen werden soll.

pattern

Gibt an, ob die pattern Eigenschaft geladen werden soll.

patternColor

Gibt an, ob die patternColor Eigenschaft geladen werden soll.

patternTintAndShade

Gibt an, ob die patternTintAndShade Eigenschaft geladen werden soll.

tintAndShade

Gibt an, ob die tintAndShade Eigenschaft geladen werden soll.

Details zur Eigenschaft

color

Gibt an, ob die color Eigenschaft geladen werden soll.

color?: boolean;

Eigenschaftswert

boolean

Hinweise

[ API-Satz: ExcelApi 1.9 ]

Beispiele

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/42-range/cell-properties.yaml

await Excel.run(async (context) => {
    const cell = context.workbook.getActiveCell();

    // Define the cell properties to get by setting the matching LoadOptions to true.
    const propertiesToGet = cell.getCellProperties({
        address: true,
        format: {
            fill: {
                color: true
            },
            font: {
                color: true
            }
        },
        style: true
    });

    // Sync to get the data from the workbook.
    await context.sync();
    const cellProperties = propertiesToGet.value[0][0];
    console.log(
        `Address: ${cellProperties.address}\nStyle: ${cellProperties.style}\nFill Color: ${cellProperties.format.fill.color}\nFont Color: ${cellProperties.format.font.color}`);
});

pattern

Gibt an, ob die pattern Eigenschaft geladen werden soll.

pattern?: boolean;

Eigenschaftswert

boolean

Hinweise

[ API-Satz: ExcelApi 1.9 ]

patternColor

Gibt an, ob die patternColor Eigenschaft geladen werden soll.

patternColor?: boolean;

Eigenschaftswert

boolean

Hinweise

[ API-Satz: ExcelApi 1.9 ]

patternTintAndShade

Gibt an, ob die patternTintAndShade Eigenschaft geladen werden soll.

patternTintAndShade?: boolean;

Eigenschaftswert

boolean

Hinweise

[ API-Satz: ExcelApi 1.9 ]

tintAndShade

Gibt an, ob die tintAndShade Eigenschaft geladen werden soll.

tintAndShade?: boolean;

Eigenschaftswert

boolean

Hinweise

[ API-Satz: ExcelApi 1.9 ]