Class PivotGridConditionalFormat
Represents a class that contains collection of conditions based on which formatting is applied in the PivotGridControl.
Inheritance
System.Object
PivotGridConditionalFormat
Implements
System.IDisposable
Namespace: Syncfusion.Windows.Forms.PivotAnalysis
Assembly: Syncfusion.PivotAnalysis.Windows.dll
Syntax
public class PivotGridConditionalFormat : Object, IDisposable
Constructors
PivotGridConditionalFormat()
Initializes a new instance of the PivotGridConditionalFormat class.
Declaration
public PivotGridConditionalFormat()
Properties
Conditions
Gets or sets the conditions.
Declaration
public ObservableCollection<ConditionalFormat> Conditions { get; set; }
Property Value
| Type |
|---|
| System.Collections.ObjectModel.ObservableCollection<ConditionalFormat> |
Examples
// Initializing a new rule.
NewRuleConditionalFormat newRule1 = new NewRuleConditionalFormat();
// Setting the condition types and predicate types.
ConditionalFormat form = new ConditionalFormat();
form.ConditionType = PivotGridDataConditionType.Equals;
form.PredicateType = PredicateType.Or;
form.StartValue = 5;
form.EndValue = 555;
// Adding the created conditional format to conditions.
newRule1.Conditions.Add(form);
' Initializing a new rule.
Dim newRule1 As New NewRuleConditionalFormat()
' Setting the condition types and predicate types.
Dim form As New ConditionalFormat()
form.ConditionType = PivotGridDataConditionType.Equals
form.PredicateType = PredicateType.Or
form.StartValue = 5
form.EndValue = 555
' Adding the created conditional format to conditions.
newRule1.Conditions.Add(form)
Name
Gets or sets the name of the collection.
Declaration
public string Name { get; set; }
Property Value
| Type |
|---|
| System.String |
PivotCellInfo
Gets or sets the PivotCellInfo instance value that holds the pivot cell information.
Declaration
public PivotCellInfo PivotCellInfo { get; set; }
Property Value
| Type |
|---|
| PivotCellInfo |
PivotCellStyle
Gets or sets the style of a pivot cell.
Declaration
public GridStyleInfo PivotCellStyle { get; set; }
Property Value
| Type |
|---|
| GridStyleInfo |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string value that represents the current object. |
Implements
System.IDisposable