Syncfusion.PivotAnalysis.Windows
Example 


NewRuleCollections Property

Gets or sets the collection of NewRuleConditionalFormat.
Syntax
'Declaration
 
<DataMemberAttribute()>
Public Property NewRuleCollections As ObservableCollection(Of NewRuleConditionalFormat)
'Usage
 
Dim instance As PivotGridNewRuleConditionalFormat
Dim value As ObservableCollection(Of NewRuleConditionalFormat)
 
instance.NewRuleCollections = value
 
value = instance.NewRuleCollections
[DataMember()]
public ObservableCollection<NewRuleConditionalFormat> NewRuleCollections {get; set;}
Example
This example shows how to use NewRuleCollections property.
// Initializing a new rule for formatting.
PivotGridNewRuleConditionalFormat newRuleFormat1 = new PivotGridNewRuleConditionalFormat();
// Adding the newly created rule to the collections.
newRuleFormat1.NewRuleCollections.Add(newRule1);
// The new rule gets associated with the pivot grid.
this.pivotGridControl1.TableControl.NewRuleConditionalFormat.Add(newRuleFormat1);
' Initializing a new rule for formatting.
Dim newRuleFormat1 As New PivotGridNewRuleConditionalFormat()
' Adding the newly created rule to the collections.
newRuleFormat1.NewRuleCollections.Add(newRule1)
' The new rule gets associated with the pivot grid.
Me.pivotGridControl1.TableControl.NewRuleConditionalFormat.Add(newRuleFormat1)
AssemblyVersion

Syncfusion.PivotAnalysis.Windows: 18.2460.0.44

See Also