跳到主要内容

ApiColorScaleCriterion

表示色阶条件格式规则中单个条件的类。

属性​

名称类型描述
ColorApiColor返回或设置色阶条件的格式颜色。
Indexnumber返回指示条件代表哪个阈值的索引。
TypeXlConditionValueTypes返回或设置色阶条件的类型。
Valuestring返回或设置色阶条件的值。

方法​

下表列出了可用的方法。

方法返回值描述
GetColorApiColor | null返回色阶条件的格式颜色。
GetIndexnumber返回指示条件代表哪个阈值的索引。
GetTypeXlConditionValueTypes | null返回色阶条件的类型。
GetValuestring | null返回色阶条件的值。
SetColor无设置色阶条件的格式颜色。
SetType无设置色阶条件的类型。
SetValue无设置色阶条件的值。