Excel.CellPropertiesFillLoadOptions interface
Spécifie les propriétés à charger sur l’objet format.fill .
Remarques
Propriétés
| color | Spécifie s’il faut charger la |
| pattern | Spécifie s’il faut charger la |
| pattern |
Spécifie s’il faut charger la |
| pattern |
Spécifie s’il faut charger la |
| tint |
Spécifie s’il faut charger la |
Détails de la propriété
color
Spécifie s’il faut charger la color propriété.
color?: boolean;
Valeur de propriété
boolean
Remarques
[ Ensemble d’API : ExcelApi 1.9 ]
Exemples
// 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}`);
});
pattern
Spécifie s’il faut charger la pattern propriété.
pattern?: boolean;
Valeur de propriété
boolean
Remarques
patternColor
Spécifie s’il faut charger la patternColor propriété.
patternColor?: boolean;
Valeur de propriété
boolean
Remarques
patternTintAndShade
Spécifie s’il faut charger la patternTintAndShade propriété.
patternTintAndShade?: boolean;
Valeur de propriété
boolean
Remarques
tintAndShade
Spécifie s’il faut charger la tintAndShade propriété.
tintAndShade?: boolean;
Valeur de propriété
boolean