C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > Aggregate Method : Aggregate(AggregateEnum) Method |
'Declaration
Public Overloads Function Aggregate( _ ByVal aggType As AggregateEnum _ ) As Double
'Usage
Dim instance As C1FlexGridBase Dim aggType As AggregateEnum Dim value As Double value = instance.Aggregate(aggType)
public double Aggregate( AggregateEnum aggType )
public: double Aggregate( AggregateEnum aggType )
void flex_SelChange(object sender, System.EventArgs e) { string fmt = "Count {0:0}, Sum {1:#,##0.00}, " + "Avg {2:#,##0.00}, Stdev {3:#,##0.00}"; Console.WriteLine(fmt, flex.Aggregate(AggregateEnum.Count), flex.Aggregate(AggregateEnum.Sum), flex.Aggregate(AggregateEnum.Average), flex.Aggregate(AggregateEnum.Std)); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2