FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid.Classic Namespace / C1FlexGridClassic 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 Aggregate(AggregateEnum,CellRange,AggregateFlags) method to calculate aggregate statistics for the selection. Whenever the selection changes, new aggregates are calculated and written to the console.
    See Also