Back to Devexpress

FormatConditionBase.ApplyToSpecificLevel Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-formatconditionbase-f1682db3.md

latest3.5 KB
Original Source

FormatConditionBase.ApplyToSpecificLevel Property

Specifies whether to apply conditional formatting to data cells placed at the intersection of specified column and row fields. This is a dependency property.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public bool ApplyToSpecificLevel { get; set; }
vb
Public Property ApplyToSpecificLevel As Boolean

Property Value

TypeDescription
Boolean

true, to apply formatting condition to specific level; otherwise, false.

|

Remarks

If the ApplyToSpecificLevel property is set to false , the FormatConditionBase.ColumnName and FormatConditionBase.RowName properties are ignored.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ApplyToSpecificLevel 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.

wpf-pivot-grid-apply-format-conditions-to-data-cells/CS/WpfPivotGridConditionalFormatting/MainWindow.xaml#L26

xml
<dxpg:PivotGridControl.FormatConditions>
    <dxpg:IconSetFormatCondition ApplyToSpecificLevel="true"
                                 MeasureName="fieldExtendedPrice"

wpf-pivot-grid-apply-format-conditions-to-data-cells/CS/WpfPivotGridConditionalFormatting/MainWindow.xaml.cs#L34

csharp
// Applies the condition to intersection of row and column fields.
formatRulesDataBar.ApplyToSpecificLevel = true;

wpf-pivot-grid-apply-format-conditions-to-data-cells/VB/WpfPivotGridConditionalFormatting/MainWindow.xaml.vb#L36

vb
' Applies the condition to intersection of row and column fields.
formatRulesDataBar.ApplyToSpecificLevel = True

See Also

FormatConditionBase Class

FormatConditionBase Members

DevExpress.Xpf.PivotGrid Namespace