Excel.CellPropertiesFillLoadOptions interface

format.fill オブジェクトに読み込むプロパティを指定します。

プロパティ

color

color プロパティを読み込むかどうかを指定します。

pattern

pattern プロパティを読み込むかどうかを指定します。

patternColor

patternColor プロパティを読み込むかどうかを指定します。

patternTintAndShade

patternTintAndShade プロパティを読み込むかどうかを指定します。

tintAndShade

tintAndShade プロパティを読み込むかどうかを指定します。

プロパティの詳細

color

color プロパティを読み込むかどうかを指定します。

color?: boolean;

プロパティ値

boolean

注釈

API セット: ExcelApi 1.9

// 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();

    // Get only the properties requested in this load-options object.
    const propertiesToGet: Excel.CellPropertiesLoadOptions = {
        address: true,
        format: {
            fill: {
                color: true
            },
            font: {
                bold: true,
                color: true
            }
        },
        style: true
    };
    const cellProperties = cell.getCellProperties(propertiesToGet);

    await context.sync();
    const activeCellProperties: Excel.CellProperties = cellProperties.value[0][0];
    console.log(JSON.stringify(activeCellProperties, null, 2));
});

pattern

pattern プロパティを読み込むかどうかを指定します。

pattern?: boolean;

プロパティ値

boolean

注釈

API セット: ExcelApi 1.9

patternColor

patternColor プロパティを読み込むかどうかを指定します。

patternColor?: boolean;

プロパティ値

boolean

注釈

API セット: ExcelApi 1.9

patternTintAndShade

patternTintAndShade プロパティを読み込むかどうかを指定します。

patternTintAndShade?: boolean;

プロパティ値

boolean

注釈

API セット: ExcelApi 1.9

tintAndShade

tintAndShade プロパティを読み込むかどうかを指定します。

tintAndShade?: boolean;

プロパティ値

boolean

注釈

API セット: ExcelApi 1.9