Excel.CellPropertiesFillLoadOptions interface
Specifies which properties to load on the format.fill object.
Properties
| color | Specifies whether to load the |
| pattern | Specifies whether to load the |
| pattern |
Specifies whether to load the |
| pattern |
Specifies whether to load the |
| tint |
Specifies whether to load the |
Property Details
color
Specifies whether to load the color property.
color?: boolean;
Property Value
boolean
Remarks
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();
console.log(JSON.stringify(cellProperties.value[0][0], null, 2));
});
pattern
Specifies whether to load the pattern property.
pattern?: boolean;
Property Value
boolean
Remarks
patternColor
Specifies whether to load the patternColor property.
patternColor?: boolean;
Property Value
boolean
Remarks
patternTintAndShade
Specifies whether to load the patternTintAndShade property.
patternTintAndShade?: boolean;
Property Value
boolean
Remarks
tintAndShade
Specifies whether to load the tintAndShade property.
tintAndShade?: boolean;
Property Value
boolean