ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.8 Assembly / C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / Aggregate Method / Aggregate(AggregateEnum) Method
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
    AggregateEnum value that specifies the type of aggregate to calculate.

    Return Value

    A System.Double that represents the aggregate value.
    Example
    The code below 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