Spread for ASP.NET 10 Product Documentation
ColumnCount Property (AggregateArgs)
Example 


Gets the number of columns.
Syntax
'Declaration
 
Public ReadOnly Property ColumnCount As Integer
'Usage
 
Dim instance As AggregateArgs
Dim value As Integer
 
value = instance.ColumnCount
public int ColumnCount {get;}
Example
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
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

AggregateArgs Class
AggregateArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.