MESCIUS SPREAD for ASP.NET 10.0J
RowCount プロパティ (GroupDataModel)

モデル内のデータ(連結または非連結)を含む列の数を取得します。
構文
'Declaration
 
Public Overrides Property RowCount As Integer
public override int RowCount {get; set;}

プロパティ値

行数を表す Integer
次のサンプル コードは、グループの行数を返します。
private void button1_Click(object sender, EventArgs e)
{
    if ((FpSpread1.ActiveSheetView.DataModel) is FarPoint.Web.Spread.Model.GroupDataModel)
    {
        gm = (FarPoint.Web.Spread.Model.GroupDataModel)FpSpread1.ActiveSheetViewDataModel;
        int i;
        i = gm.RowCount();
        String msg = i.ToString();
        Response.Write("alert('" + msg + "')");
    }
}
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim gm As FarPoint.Web.Spread.Model.GroupDataModel
    If TypeOf (FpSpread1.ActiveSheetView.DataModel) Is FarPoint.Web.Spread.Model.GroupDataModel Then
        gm = FpSpread1.ActiveSheetView.DataModel
        Dim i As Integer
        i = gm.RowCount
        String msg = i.ToString()
        Response.Write("alert('" & msg & "')")
    End If
End Sub
参照

GroupDataModel クラス
GroupDataModel メンバ

 

 


© MESCIUS inc. All rights reserved.