Excel.CellPropertiesLoadOptions interface
Представляет свойства ячейки для загрузки при использовании в составе метода range.getCellProperties.
Свойства
| address | Указывает, следует ли загружать |
| address |
Указывает, следует ли загружать |
| format | Указывает, следует ли загружать |
| hidden | Указывает, следует ли загружать |
| hyperlink | Указывает, следует ли загружать |
| style | Указывает, следует ли загружать |
| text |
Указывает, следует ли загружать |
Сведения о свойстве
address
Указывает, следует ли загружать address свойство .
address?: boolean;
Значение свойства
boolean
Примеры
// 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}`);
});
addressLocal
Указывает, следует ли загружать addressLocal свойство .
addressLocal?: boolean;
Значение свойства
boolean
format
Указывает, следует ли загружать format свойство .
format?: Excel.CellPropertiesFormatLoadOptions;
Значение свойства
hidden
Указывает, следует ли загружать hidden свойство .
hidden?: boolean;
Значение свойства
boolean
hyperlink
Указывает, следует ли загружать hyperlink свойство .
hyperlink?: boolean;
Значение свойства
boolean
style
Указывает, следует ли загружать style свойство .
style?: boolean;
Значение свойства
boolean
textRuns
Указывает, следует ли загружать textRuns свойство .
textRuns?: boolean;
Значение свойства
boolean