menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PivotGridConditionalFormat - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Windows.Forms.PivotAnalysis
    Assembly: Syncfusion.PivotAnalysis.Windows.dll
    Syntax
    public class PivotGridConditionalFormat : 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.

    Overrides
    System.Object.ToString()

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved