Excel.CellPropertiesFontLoadOptions interface
format.font オブジェクトに読み込むプロパティを指定します。
プロパティ
| bold |
|
| color |
|
| italic |
|
| name |
|
| size |
|
| strikethrough |
|
| subscript |
|
| superscript |
|
| tint |
|
| underline |
|
プロパティの詳細
bold
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));
});
italic
name
size
strikethrough
strikethrough プロパティを読み込むかどうかを指定します。
strikethrough?: boolean;
プロパティ値
boolean