Excel.Interfaces.ConditionalFormatLoadOptions interface
An object encapsulating a conditional format's range, format, rule, and other properties. To learn more about the conditional formatting object model, read Apply conditional formatting to Excel ranges.
Remarks
Properties
$all | Specifying |
cell |
Returns the cell value conditional format properties if the current conditional format is a |
cell |
Returns the cell value conditional format properties if the current conditional format is a |
color |
Returns the color scale conditional format properties if the current conditional format is a |
color |
Returns the color scale conditional format properties if the current conditional format is a |
custom | Returns the custom conditional format properties if the current conditional format is a custom type. |
custom |
Returns the custom conditional format properties if the current conditional format is a custom type. |
data |
Returns the data bar properties if the current conditional format is a data bar. |
data |
Returns the data bar properties if the current conditional format is a data bar. |
icon |
Returns the icon set conditional format properties if the current conditional format is an |
icon |
Returns the icon set conditional format properties if the current conditional format is an |
id | The priority of the conditional format in the current |
preset | Returns the preset criteria conditional format. See |
preset |
Returns the preset criteria conditional format. See |
priority | The priority (or index) within the conditional format collection that this conditional format currently exists in. Changing this also changes other conditional formats' priorities, to allow for a contiguous priority order. Use a negative priority to begin from the back. Priorities greater than the bounds will get and set to the maximum (or minimum if negative) priority. Also note that if you change the priority, you have to re-fetch a new copy of the object at that new priority location if you want to make further changes to it. |
stop |
If the conditions of this conditional format are met, no lower-priority formats shall take effect on that cell. Value is |
text |
Returns the specific text conditional format properties if the current conditional format is a text type. For example, to format cells matching the word "Text". |
text |
Returns the specific text conditional format properties if the current conditional format is a text type. For example, to format cells matching the word "Text". |
top |
Returns the top/bottom conditional format properties if the current conditional format is a |
top |
Returns the top/bottom conditional format properties if the current conditional format is a |
type | A type of conditional format. Only one can be set at a time. |
Property Details
$all
Specifying $all
for the load options loads all the scalar properties (such as Range.address
) but not the navigational properties (such as Range.format.fill.color
).
$all?: boolean;
Property Value
boolean
cellValue
Returns the cell value conditional format properties if the current conditional format is a CellValue
type.
cellValue?: Excel.Interfaces.CellValueConditionalFormatLoadOptions;
Property Value
Remarks
cellValueOrNullObject
Returns the cell value conditional format properties if the current conditional format is a CellValue
type.
cellValueOrNullObject?: Excel.Interfaces.CellValueConditionalFormatLoadOptions;
Property Value
Remarks
colorScale
Returns the color scale conditional format properties if the current conditional format is a ColorScale
type.
colorScale?: Excel.Interfaces.ColorScaleConditionalFormatLoadOptions;
Property Value
Remarks
colorScaleOrNullObject
Returns the color scale conditional format properties if the current conditional format is a ColorScale
type.
colorScaleOrNullObject?: Excel.Interfaces.ColorScaleConditionalFormatLoadOptions;
Property Value
Remarks
custom
Returns the custom conditional format properties if the current conditional format is a custom type.
custom?: Excel.Interfaces.CustomConditionalFormatLoadOptions;
Property Value
Remarks
customOrNullObject
Returns the custom conditional format properties if the current conditional format is a custom type.
customOrNullObject?: Excel.Interfaces.CustomConditionalFormatLoadOptions;
Property Value
Remarks
dataBar
Returns the data bar properties if the current conditional format is a data bar.
dataBar?: Excel.Interfaces.DataBarConditionalFormatLoadOptions;
Property Value
Remarks
dataBarOrNullObject
Returns the data bar properties if the current conditional format is a data bar.
dataBarOrNullObject?: Excel.Interfaces.DataBarConditionalFormatLoadOptions;
Property Value
Remarks
iconSet
Returns the icon set conditional format properties if the current conditional format is an IconSet
type.
iconSet?: Excel.Interfaces.IconSetConditionalFormatLoadOptions;
Property Value
Remarks
iconSetOrNullObject
Returns the icon set conditional format properties if the current conditional format is an IconSet
type.
iconSetOrNullObject?: Excel.Interfaces.IconSetConditionalFormatLoadOptions;
Property Value
Remarks
id
The priority of the conditional format in the current ConditionalFormatCollection
.
id?: boolean;
Property Value
boolean
Remarks
preset
Returns the preset criteria conditional format. See Excel.PresetCriteriaConditionalFormat
for more details.
preset?: Excel.Interfaces.PresetCriteriaConditionalFormatLoadOptions;
Property Value
Remarks
presetOrNullObject
Returns the preset criteria conditional format. See Excel.PresetCriteriaConditionalFormat
for more details.
presetOrNullObject?: Excel.Interfaces.PresetCriteriaConditionalFormatLoadOptions;
Property Value
Remarks
priority
The priority (or index) within the conditional format collection that this conditional format currently exists in. Changing this also changes other conditional formats' priorities, to allow for a contiguous priority order. Use a negative priority to begin from the back. Priorities greater than the bounds will get and set to the maximum (or minimum if negative) priority. Also note that if you change the priority, you have to re-fetch a new copy of the object at that new priority location if you want to make further changes to it.
priority?: boolean;
Property Value
boolean
Remarks
stopIfTrue
If the conditions of this conditional format are met, no lower-priority formats shall take effect on that cell. Value is null
on data bars, icon sets, and color scales as there's no concept of StopIfTrue
for these.
stopIfTrue?: boolean;
Property Value
boolean
Remarks
textComparison
Returns the specific text conditional format properties if the current conditional format is a text type. For example, to format cells matching the word "Text".
textComparison?: Excel.Interfaces.TextConditionalFormatLoadOptions;
Property Value
Remarks
textComparisonOrNullObject
Returns the specific text conditional format properties if the current conditional format is a text type. For example, to format cells matching the word "Text".
textComparisonOrNullObject?: Excel.Interfaces.TextConditionalFormatLoadOptions;
Property Value
Remarks
topBottom
Returns the top/bottom conditional format properties if the current conditional format is a TopBottom
type. For example, to format the top 10% or bottom 10 items.
topBottom?: Excel.Interfaces.TopBottomConditionalFormatLoadOptions;
Property Value
Remarks
topBottomOrNullObject
Returns the top/bottom conditional format properties if the current conditional format is a TopBottom
type. For example, to format the top 10% or bottom 10 items.
topBottomOrNullObject?: Excel.Interfaces.TopBottomConditionalFormatLoadOptions;
Property Value
Remarks
type
A type of conditional format. Only one can be set at a time.
type?: boolean;
Property Value
boolean
Remarks
Office Add-ins