ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / Aggregate Method / Aggregate(AggregateEnum) Method
C1.Win.C1FlexGrid.AggregateEnum value that specifies the type of aggregate to calculate.

In This Topic
    Aggregate(AggregateEnum) Method
    In This Topic
    Calculates aggregate statistics for the selection.
    Syntax
    'Declaration
     
    Public Overloads Function Aggregate( _
       ByVal aggType As AggregateEnum _
    ) As Double
    public double Aggregate( 
       AggregateEnum aggType
    )

    Parameters

    aggType
    C1.Win.C1FlexGrid.AggregateEnum value that specifies the type of aggregate to calculate.

    Return Value

    A System.Double that represents the aggregate value.
    Example
    The code below C1.Win.C1FlexGrid.C1FlexGridBase.Aggregate method to calculate aggregate statistics for the selection. Whenever the selection changes, new aggregates are calculated and written to the console.
    See Also