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();
// 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
patternColor
プロパティを読み込む patternColor
かどうかを指定します。
patternColor?: boolean;
プロパティ値
boolean
注釈
patternTintAndShade
プロパティを読み込む patternTintAndShade
かどうかを指定します。
patternTintAndShade?: boolean;
プロパティ値
boolean
注釈
tintAndShade
プロパティを読み込む tintAndShade
かどうかを指定します。
tintAndShade?: boolean;
プロパティ値
boolean
注釈
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Office Add-ins
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示