ConditionalFormattingCollection

ConditionalFormattingCollection class

Encapsulates a collection of FormatCondition objects.

Properties

NameTypeDescription
Countint
Item (int)FormatConditionCollectionGets the FormatConditions element at the specified index.

Methods

NameDescription
removeAreaRemove all conditional formatting in the range.
copyCopies conditional formatting.
addAdds a FormatConditions to the collection.
clear
removeAt
iterator
getReserved for internal use.
containsReserved for internal use.
indexOfReserved for internal use.

ConditionalFormattingCollection.Count property

Type: int

ConditionalFormattingCollection.Item (int) property

Gets the FormatConditions element at the specified index.

Type: FormatConditionCollection

removeArea(startRow, startColumn, totalRows, totalColumns)

Remove all conditional formatting in the range.

ParameterTypeDescription
startRowintThe start row of the range.
startColumnintThe start column of the range.
totalRowsintThe number of rows of the range.
totalColumnsintThe number of columns of the range.

copy(cfs)

Copies conditional formatting.

ParameterTypeDescription
cfsConditionalFormattingCollectionThe conditional formatting

add() (1 of 2)

Adds a FormatConditions to the collection.

Returns: FormatConditions object index.


add(value) (2 of 2)

Reserved for internal use.

clear()

removeAt(index)

iterator()

get(index)

Reserved for internal use.

contains(value)

Reserved for internal use.

indexOf(value)

Reserved for internal use.