Edit

Excel.CellProperties interface

Represents the returned properties of getCellProperties.

API set: ExcelApi 1.9

Extends

Remarks

Used by

Examples

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

Properties

address

Represents the address property.

API set: ExcelApi 1.9

addressLocal

Represents the addressLocal property.

API set: ExcelApi 1.9

hidden

Represents the hidden property.

API set: ExcelApi 1.9

Property Details

address

Represents the address property.

API set: ExcelApi 1.9

address?: string;

Property Value

string

addressLocal

Represents the addressLocal property.

API set: ExcelApi 1.9

addressLocal?: string;

Property Value

string

hidden

Represents the hidden property.

API set: ExcelApi 1.9

hidden?: boolean;

Property Value

boolean