Back to Devexpress

FormatConditionBase.PredefinedFormatName Property

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

latest3.7 KB
Original Source

FormatConditionBase.PredefinedFormatName Property

Gets or sets the name of the predefined format to be applied to the cells. This is a dependency property.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public string PredefinedFormatName { get; set; }
vb
Public Property PredefinedFormatName As String

Property Value

TypeDescription
String

A System.String value that is the predefined format name.

|

Remarks

You can find the list of predefined format names for each format condition type here.

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

xml
MeasureName="fieldExtendedPrice"
                             RowName="fieldSalesPerson" ColumnName="fieldYear" PredefinedFormatName="Arrows3ColoredIconSet"/>
<dxpg:TopBottomRuleFormatCondition ApplyToSpecificLevel="true"

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

csharp
// Sets the predefined format.
formatRulesDataBar.PredefinedFormatName = "OrangeGradientDataBar";

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

vb
' Sets the predefined format.
formatRulesDataBar.PredefinedFormatName = "OrangeGradientDataBar"

See Also

FormatConditionBase Class

FormatConditionBase Members

DevExpress.Xpf.PivotGrid Namespace