Excel.Interfaces.ConditionalFormatCollectionLoadOptions interface
表示与区域重叠的所有条件格式的集合。
属性
| $all | 指定加载选项将 |
| cell |
For EACH ITEM in the collection:如果当前条件格式为类型 |
| cell |
For EACH ITEM in the collection:如果当前条件格式为类型 |
| color |
For EACH ITEM in the collection: 如果当前条件格式为类型 |
| color |
For EACH ITEM in the collection: 如果当前条件格式为类型 |
| custom | For EACH ITEM in the collection: 如果当前条件格式为自定义类型,则返回自定义条件格式属性。 |
| custom |
For EACH ITEM in the collection: 如果当前条件格式为自定义类型,则返回自定义条件格式属性。 |
| data |
For EACH ITEM in the collection: 如果当前条件格式为数据栏,则返回数据栏属性。 |
| data |
For EACH ITEM in the collection: 如果当前条件格式为数据栏,则返回数据栏属性。 |
| icon |
For EACH ITEM in the collection: 如果当前条件格式为类型 |
| icon |
For EACH ITEM in the collection: 如果当前条件格式为类型 |
| id | 对于集合中的每个项目: 条件格式在当前 |
| preset | For EACH ITEM in the collection: 返回预设条件条件格式。 有关详细信息,请参阅 |
| preset |
For EACH ITEM in the collection: 返回预设条件条件格式。 有关详细信息,请参阅 |
| priority | 对于集合中的每个项:此条件格式当前所在的条件格式集合中的优先级 (或索引) 。 更改此项还会更改其他条件格式的优先级,以允许连续的优先级顺序。 使用负优先级从后面开始。 大于边界的优先级将获取并设置为最大 (,如果为负) 优先级,则设置为最小值。 另请注意,如果更改优先级,如果要对其进行进一步更改,则必须在该新的优先级位置重新获取对象的新副本。 |
| stop |
对于集合中的每个项:如果满足此条件格式的条件,则优先级较低的格式不会在该单元格上生效。 值位于 |
| text |
For EACH ITEM in the collection:如果当前条件格式为文本类型,则返回特定的文本条件格式属性。 例如,设置与单词“文本”匹配的单元格的格式。 |
| text |
For EACH ITEM in the collection:如果当前条件格式为文本类型,则返回特定的文本条件格式属性。 例如,设置与单词“文本”匹配的单元格的格式。 |
| top |
For EACH ITEM in the collection: 如果当前条件格式为类型 |
| top |
For EACH ITEM in the collection: 如果当前条件格式为类型 |
| type | 对于集合中的每个项目: 一种条件格式。 一次只能设置一个。 |
属性详细信息
$all
指定加载选项将 $all 加载所有标量属性 ((如 Range.address) ),但不会加载导航属性 ((如 Range.format.fill.color) )。
$all?: boolean;
属性值
boolean
cellValue
For EACH ITEM in the collection:如果当前条件格式为类型 CellValue ,则返回单元格值的条件格式属性。
cellValue?: Excel.Interfaces.CellValueConditionalFormatLoadOptions;
属性值
注解
cellValueOrNullObject
For EACH ITEM in the collection:如果当前条件格式为类型 CellValue ,则返回单元格值的条件格式属性。
cellValueOrNullObject?: Excel.Interfaces.CellValueConditionalFormatLoadOptions;
属性值
注解
colorScale
For EACH ITEM in the collection: 如果当前条件格式为类型 ColorScale ,则返回色阶条件格式属性。
colorScale?: Excel.Interfaces.ColorScaleConditionalFormatLoadOptions;
属性值
注解
colorScaleOrNullObject
For EACH ITEM in the collection: 如果当前条件格式为类型 ColorScale ,则返回色阶条件格式属性。
colorScaleOrNullObject?: Excel.Interfaces.ColorScaleConditionalFormatLoadOptions;
属性值
注解
custom
For EACH ITEM in the collection: 如果当前条件格式为自定义类型,则返回自定义条件格式属性。
custom?: Excel.Interfaces.CustomConditionalFormatLoadOptions;
属性值
注解
customOrNullObject
For EACH ITEM in the collection: 如果当前条件格式为自定义类型,则返回自定义条件格式属性。
customOrNullObject?: Excel.Interfaces.CustomConditionalFormatLoadOptions;
属性值
注解
dataBar
For EACH ITEM in the collection: 如果当前条件格式为数据栏,则返回数据栏属性。
dataBar?: Excel.Interfaces.DataBarConditionalFormatLoadOptions;
属性值
注解
dataBarOrNullObject
For EACH ITEM in the collection: 如果当前条件格式为数据栏,则返回数据栏属性。
dataBarOrNullObject?: Excel.Interfaces.DataBarConditionalFormatLoadOptions;
属性值
注解
iconSet
For EACH ITEM in the collection: 如果当前条件格式为类型 IconSet ,则返回设置条件格式属性图标。
iconSet?: Excel.Interfaces.IconSetConditionalFormatLoadOptions;
属性值
注解
iconSetOrNullObject
For EACH ITEM in the collection: 如果当前条件格式为类型 IconSet ,则返回设置条件格式属性图标。
iconSetOrNullObject?: Excel.Interfaces.IconSetConditionalFormatLoadOptions;
属性值
注解
id
preset
For EACH ITEM in the collection: 返回预设条件条件格式。 有关详细信息,请参阅 Excel.PresetCriteriaConditionalFormat。
preset?: Excel.Interfaces.PresetCriteriaConditionalFormatLoadOptions;
属性值
注解
presetOrNullObject
For EACH ITEM in the collection: 返回预设条件条件格式。 有关详细信息,请参阅 Excel.PresetCriteriaConditionalFormat。
presetOrNullObject?: Excel.Interfaces.PresetCriteriaConditionalFormatLoadOptions;
属性值
注解
priority
对于集合中的每个项:此条件格式当前所在的条件格式集合中的优先级 (或索引) 。 更改此项还会更改其他条件格式的优先级,以允许连续的优先级顺序。 使用负优先级从后面开始。 大于边界的优先级将获取并设置为最大 (,如果为负) 优先级,则设置为最小值。 另请注意,如果更改优先级,如果要对其进行进一步更改,则必须在该新的优先级位置重新获取对象的新副本。
priority?: boolean;
属性值
boolean
注解
stopIfTrue
对于集合中的每个项:如果满足此条件格式的条件,则优先级较低的格式不会在该单元格上生效。 值位于 null 数据条、图标集和色阶上,因为没有这些概念 StopIfTrue 。
stopIfTrue?: boolean;
属性值
boolean
注解
textComparison
For EACH ITEM in the collection:如果当前条件格式为文本类型,则返回特定的文本条件格式属性。 例如,设置与单词“文本”匹配的单元格的格式。
textComparison?: Excel.Interfaces.TextConditionalFormatLoadOptions;
属性值
注解
textComparisonOrNullObject
For EACH ITEM in the collection:如果当前条件格式为文本类型,则返回特定的文本条件格式属性。 例如,设置与单词“文本”匹配的单元格的格式。
textComparisonOrNullObject?: Excel.Interfaces.TextConditionalFormatLoadOptions;
属性值
注解
topBottom
For EACH ITEM in the collection: 如果当前条件格式为类型 TopBottom ,则返回顶部/底部的条件格式属性。 例如,设置前 10% 或后 10 个项目的格式。
topBottom?: Excel.Interfaces.TopBottomConditionalFormatLoadOptions;
属性值
注解
topBottomOrNullObject
For EACH ITEM in the collection: 如果当前条件格式为类型 TopBottom ,则返回顶部/底部的条件格式属性。 例如,设置前 10% 或后 10 个项目的格式。
topBottomOrNullObject?: Excel.Interfaces.TopBottomConditionalFormatLoadOptions;