Excel.CellProperties interface
Stellt die zurückgegebenen Eigenschaften von getCellProperties dar.
- Extends
Hinweise
Verwendet von
Beispiele
// 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));
});
Eigenschaften
| address | Stellt die |
| address |
Stellt die |
| hidden | Stellt die |
Details zur Eigenschaft
address
Stellt die address Eigenschaft dar.
address?: string;
Eigenschaftswert
string
addressLocal
Stellt die addressLocal Eigenschaft dar.
addressLocal?: string;
Eigenschaftswert
string
hidden
Stellt die hidden Eigenschaft dar.
hidden?: boolean;
Eigenschaftswert
boolean