All docs
V21.2
21.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

ConditionalFormattingCollection.GetConditionalFormattings(CellRange) Method

Obtains conditional formatting rules applied to the specified cell range.

Namespace: DevExpress.Spreadsheet

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

Declaration

IEnumerable<ConditionalFormatting> GetConditionalFormattings(
    CellRange range
)

Parameters

Name Type Description
range CellRange

A cell range for which conditional formatting rules are obtained.

Returns

Type Description
IEnumerable<ConditionalFormatting>

A collection of conditional formats applied to the cell range.

Remarks

Use the GetConditionalFormattings method to obtain a collection of conditional formats applied to a specific cell range. This method returns an empty list in the following cases:

  • If the method’s range parameter is null.

  • If the specified range doesn’t contain any conditional formats applied.

If a cell range specified by the range parameter doesn’t belong to the worksheet that owns the current ConditionalFormattingCollection collection, an ArgumentException occurs.

See Also