Back to Devexpress

Worksheet.ConditionalFormattings Property

officefileapi-devexpress-dot-spreadsheet-dot-worksheet-24453e55.md

latest5.7 KB
Original Source

Worksheet.ConditionalFormattings Property

Provides access to the collection of all conditional formatting rules on a worksheet.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
ConditionalFormattingCollection ConditionalFormattings { get; }
vb
ReadOnly Property ConditionalFormattings As ConditionalFormattingCollection

Property Value

TypeDescription
ConditionalFormattingCollection

A ConditionalFormattingCollection collection that stores all conditional formatting rules specified on a worksheet.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ConditionalFormattings property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-apply-conditional-formatting-to-a-range-of-cells/CS/SpreadsheetControl/SpreadsheetActions/ConditionalFormatting.cs#L36

csharp
#region #AverageConditionalFormatting
ConditionalFormattingCollection conditionalFormattings = worksheet.ConditionalFormattings;
// Create the rule highlighting values that are above the average in cells C2 through C15.

spreadsheet-document-api-apply-conditional-formatting-to-cell-range/CS/ConditionalFormatting_Example/SpreadsheetActions/ConditionalFormatting.cs#L38

csharp
#region #AverageConditionalFormatting
ConditionalFormattingCollection conditionalFormattings = worksheet.ConditionalFormattings;
// Create the rule highlighting values that are above the average in cells C2 through C15.

wpf-spreadsheet-how-to-apply-conditional-formatting-to-a-range-of-cells/CS/ConditionalFormatting_WPF_Examples/SpreadsheetActions/ConditionalFormatting.cs#L35

csharp
#region #AverageConditionalFormatting
ConditionalFormattingCollection conditionalFormattings = worksheet.ConditionalFormattings;
// Create the rule highlighting values that are above the average in cells C2 through C15.

winforms-spreadsheet-apply-conditional-formatting-to-a-range-of-cells/VB/SpreadsheetControl/SpreadsheetActions/ConditionalFormatting.vb#L35

vb
' #Region "#AverageConditionalFormatting"
                Dim conditionalFormattings As ConditionalFormattingCollection = worksheet.ConditionalFormattings
                ' Create the rule highlighting values that are above the average in cells C2 through C15.

spreadsheet-document-api-apply-conditional-formatting-to-cell-range/VB/ConditionalFormatting_Example/SpreadsheetActions/ConditionalFormatting.vb#L43

vb
#Region "#AverageConditionalFormatting"
                Dim conditionalFormattings As ConditionalFormattingCollection = worksheet.ConditionalFormattings
                ' Create the rule highlighting values that are above the average in cells C2 through C15.

wpf-spreadsheet-how-to-apply-conditional-formatting-to-a-range-of-cells/VB/ConditionalFormatting_WPF_Examples/SpreadsheetActions/ConditionalFormatting.vb#L33

vb
' #Region "#AverageConditionalFormatting"
                Dim conditionalFormattings As ConditionalFormattingCollection = worksheet.ConditionalFormattings
                ' Create the rule highlighting values that are above the average in cells C2 through C15.

See Also

Worksheet Interface

Worksheet Members

DevExpress.Spreadsheet Namespace