Class PivotGridDataConditionalFormat
Class that defines the conditional formatting settings to format PivotGrid cells based on specific conditions.
Inheritance
Namespace: Syncfusion.Windows.Controls.PivotGrid
Assembly: Syncfusion.PivotAnalysis.WPF.dll
Syntax
public class PivotGridDataConditionalFormat : Freezable
Constructors
PivotGridDataConditionalFormat()
PivotGridDataConditionalFormat is used to specify the criteria for filtering the cells and also styles to be applied to the filtered cells.
Declaration
public PivotGridDataConditionalFormat()
Fields
CellStyleProperty
The Style for each conditional format can be specified using the PivotGridDataConditionalFormat.CellStyle property, which should be of type PivotGridCellStyle.
Declaration
public static readonly DependencyProperty CellStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ConditionsProperty
The criteria for filtering the cells are specified using PivotGridDataConditionalFormat.Conditions property, which is a collection of PivotGridDataCondition objects.
Declaration
public static readonly DependencyProperty ConditionsProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
NameProperty
The Name for each conditional format can be specified using PivotGridDataConditionalFormat.Name property, which should be of type string.
Declaration
public static readonly DependencyProperty NameProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ValueCellTypeProperty
The ValueCellType for each conditional format can be specified using PivotGridDataConditionalFormat.ValueCellType property, which should be of type PivotGridValueCellType.
Declaration
public static readonly DependencyProperty ValueCellTypeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
CellStyle
Gets or sets the style for each conditional format.
Declaration
public PivotGridCellStyle CellStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| PivotGridCellStyle | Style Settings. |
Conditions
Gets or sets the conditions, that is, holds the collection of PivotGrid data condition objects.
Declaration
public FreezableCollection<PivotGridDataCondition> Conditions { get; set; }
Property Value
| Type |
|---|
| System.Windows.FreezableCollection<PivotGridDataCondition> |
Name
Gets or sets the name of the fields for conditional formatting.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | Field Name. |
ValueCellType
Gets or sets the type of the value cell.
Declaration
public PivotGridValueCellType ValueCellType { get; set; }
Property Value
| Type | Description |
|---|---|
| PivotGridValueCellType | The type of the value cell. |
Methods
CreateInstanceCore()
Creates the new instance for applying conditional formats
Declaration
protected override Freezable CreateInstanceCore()
Returns
| Type |
|---|
| System.Windows.Freezable |