Back to Devexpress

ConditionalFormattingCollection.IndexOf(ConditionalFormatting) Method

officefileapi-devexpress-dot-spreadsheet-dot-conditionalformattingcollection-dot-indexof-x28-devexpress-dot-spreadsheet-dot-conditionalformatting-x29.md

latest1.8 KB
Original Source

ConditionalFormattingCollection.IndexOf(ConditionalFormatting) Method

Returns the index of the specified conditional formatting rule in the collection.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
int IndexOf(
    ConditionalFormatting formatting
)
vb
Function IndexOf(
    formatting As ConditionalFormatting
) As Integer

Parameters

NameTypeDescription
formattingConditionalFormatting

A ConditionalFormatting object to locate in the collection.

|

Returns

TypeDescription
Int32

A zero-based integer which specifies the rule’s position within the collection. -1 if the rule doesn’t belong to the collection.

|

See Also

ConditionalFormattingCollection Interface

ConditionalFormattingCollection Members

DevExpress.Spreadsheet Namespace