FlexPivot for WinForms
Aggregate(AggregateEnum) メソッド
使用例 

C1.Win.C1FlexGrid.4.5.2 アセンブリ > C1.Win.C1FlexGrid 名前空間 > C1FlexGridBase クラス > Aggregate メソッド : Aggregate(AggregateEnum) メソッド
AggregateEnum value that specifies the type of aggregate to calculate.
Calculates aggregate statistics for the selection.
シンタックス
'宣言
 
Public Overloads Function Aggregate( _
   ByVal aggType As AggregateEnum _
) As System.Double
public System.double Aggregate( 
   AggregateEnum aggType
)

パラメータ

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

戻り値の型

A System.Double that represents the aggregate value.
使用例
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.
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));
}
参照

C1FlexGridBase クラス
C1FlexGridBase メンバ
オーバーロード一覧