wpf-devexpress-dot-xpf-dot-grid-dot-topbottomruleformatcondition-da03198c.md
Specifies the number or percentage of cells (or corresponding rows) to format. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public double Threshold { get; set; }
Public Property Threshold As Double
| Type | Description |
|---|---|
| Double |
A number of cells to format.
|
The Threshold property is in effect for the following rules:
Depending on the rule, the Threshold property is used to specify either the number or percentage of cells (or corresponding rows) to format.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Threshold 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-data-grid-apply-conditional-formatting/CS/ConditionalFormatting/MainWindow.xaml#L23
<dxg:DataBarFormatCondition FieldName="Sales" PredefinedFormatName="RedGradientDataBar"/>
<dxg:TopBottomRuleFormatCondition Expression="[Sales]" Rule="TopPercent" Threshold="10" PredefinedFormatName="BoldText"/>
<dxg:FormatCondition Expression="[SalesVsTarget] < 0.0m" FieldName="SalesVsTarget" PredefinedFormatName="RedText"/>
See Also
TopBottomRuleFormatCondition Class