PowerTools MultiRow for Windows Forms 8.0J
CellName プロパティ (MathStatistics)
使用例 

その値が統計計算の対象となるセルの名前を取得または設定します。
構文
Public Property CellName As String
public string CellName {get; set;}

プロパティ値

セルの名前を表すSystem.String値。既定値はString.Emptyです。
使用例
次のサンプルコードは、集計セルの計算ロジックをカスタマイズする方法を示します。このサンプルコードは、SummaryCellクラスに示されている詳細なコード例の一部を抜粋したものです。
private SummaryCell CreateTotalSummaryCell()
{
    // Calculate sum of sub-total in all rows.
    SummaryCell summaryCell = new SummaryCell();
    summaryCell.Name = "Total";
    summaryCell.Calculation = new MathStatistics(StatisticsType.Sum, "SubTotal", true);
    summaryCell.Style.Format = "C";
    summaryCell.Style.BackColor = Color.Wheat;
    return summaryCell;
}
Private Function CreateTotalSummaryCell() As SummaryCell
    ' Calculate sum of sub-total in all rows.
    Dim summaryCell As New SummaryCell()
    summaryCell.Name = "Total"
    summaryCell.Calculation = New MathStatistics(StatisticsType.Sum, "SubTotal", True)
    summaryCell.Style.Format = "C"
    summaryCell.Style.BackColor = Color.Wheat
    Return summaryCell
End Function
参照

MathStatistics クラス
MathStatistics メンバ

 

 


© 2008-2015 GrapeCity inc. All rights reserved.