Excel.CellProperties interface

Представляет возвращаемые свойства getCellProperties.

Набор API: ExcelApi 1.9

Extends

Комментарии

Используется

Примеры

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

Свойства

address

Представляет свойство address.

Набор API: ExcelApi 1.9

addressLocal

Представляет свойство addressLocal.

Набор API: ExcelApi 1.9

hidden

Представляет свойство hidden.

Набор API: ExcelApi 1.9

Сведения о свойстве

address

Представляет свойство address.

Набор API: ExcelApi 1.9

address?: string;

Значение свойства

string

addressLocal

Представляет свойство addressLocal.

Набор API: ExcelApi 1.9

addressLocal?: string;

Значение свойства

string

hidden

Представляет свойство hidden.

Набор API: ExcelApi 1.9

hidden?: boolean;

Значение свойства

boolean