GrapeCity.Win.MultiRow Namespace > MathStatistics Class > MathStatistics Constructor : MathStatistics Constructor(StatisticsType,Int32,Boolean) |
Public Function New( _ ByVal statisticsType As StatisticsType, _ ByVal cellIndex As Integer, _ ByVal excludeHiddenRows As Boolean _ )
Dim statisticsType As StatisticsType Dim cellIndex As Integer Dim excludeHiddenRows As Boolean Dim instance As New MathStatistics(statisticsType, cellIndex, excludeHiddenRows)
public MathStatistics( StatisticsType statisticsType, int cellIndex, bool excludeHiddenRows )
private SummaryCell CreateTotalSummaryCell() { // Calculate sum of subtotal 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 subtotal 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
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