Excel.CellProperties interface
Represents the returned properties of getCellProperties.
- 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 |
Represents the |
| hidden | Represents the |
Property Details
address
addressLocal
Represents the addressLocal property.
addressLocal?: string;
Property Value
string