Excel.CellPropertiesFillLoadOptions interface
Указывает, какие свойства следует загрузить для format.fill объекта.
Свойства
| color | Указывает, следует ли загружать свойство |
| pattern | Указывает, следует ли загружать свойство |
| pattern |
Указывает, следует ли загружать свойство |
| pattern |
Указывает, следует ли загружать свойство |
| tint |
Указывает, следует ли загружать свойство |
Сведения о свойстве
color
Указывает, следует ли загружать свойство color .
color?: 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();
// 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));
});
pattern
Указывает, следует ли загружать свойство pattern .
pattern?: boolean;
Значение свойства
boolean
Комментарии
patternColor
Указывает, следует ли загружать свойство patternColor .
patternColor?: boolean;
Значение свойства
boolean
Комментарии
patternTintAndShade
Указывает, следует ли загружать свойство patternTintAndShade .
patternTintAndShade?: boolean;
Значение свойства
boolean
Комментарии
tintAndShade
Указывает, следует ли загружать свойство tintAndShade .
tintAndShade?: boolean;
Значение свойства
boolean