Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread.Model Namespace / AggregateArgs Class / ColumnCount Property

In This Topic
    ColumnCount Property (AggregateArgs)
    In This Topic
    Gets the number of columns.
    Public ReadOnly Property ColumnCount As Integer
    Dim instance As AggregateArgs
    Dim value As Integer
    value = instance.ColumnCount
    public int ColumnCount {get;}
    This example returns the column and aggregate type.
    protected void FpSpread1Aggregate(object sender, FarPoint.Web.Spread.Model.AggregateArgs e) 
        string msg = "The number of columns in the aggregate is " + e.ColumnCount.ToString();
        Response.Write("<script language='javascript'>alert('" + msg + "')</script>")
    Protected Sub FpSpread1Aggregate(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.Model.AggregateArgs) Handles FpSpread1.Aggregate
        Dim msg As String = "The number of columns in the aggregate is " & e.ColumnCount.ToString()
        TextBox1.Text = msg
    End Sub
    See Also