PowerTools SPREAD for ASP.NET 8.0J
Parent プロパティ (Group)

グループの親を取得します。
構文
'Declaration
 
Public ReadOnly Property Parent As Group
public Group Parent {get;}

プロパティ値

親グループを含むGroupオブジェクト
次のサンプル コードは、親を返します。
FarPoint.Web.Spread.Model.GroupDataModel gm = new FarPoint.Web.Spread.Model.GroupDataModel(FpSpread1.ActiveSheetView.DataModel);
FarPoint.Web.Spread.SortInfo[] sort = new FarPoint.Web.Spread.SortInfo[1];
sort[0] = new FarPoint.Web.Spread.SortInfo(0, true);
gm.Group(sort, System.Collections.Comparer.Default);
FpSpread1.ActiveSheetView.DataModel = gm;

FarPoint.Web.Spread.Model.Group dg = new FarPoint.Web.Spread.Model.Group(gm, (FarPoint.Web.Spread.Model.Group)gm.Groups[0], 0, true);
FarPoint.Web.Spread.Model.Group g = dg.Parent;
String msg = g.ToString();
Response.Write("alert('" + msg + "')");
Dim gm As New FarPoint.Web.Spread.Model.GroupDataModel(FpSpread1.ActiveSheetView.DataModel)
Dim sort(0) As FarPoint.Web.Spread.SortInfo
sort(0) = New FarPoint.Web.Spread.SortInfo(0, True)
gm.Group(sort)
FpSpread1.ActiveSheetView.DataModel = gm

Dim dg As New FarPoint.Web.Spread.Model.Group(gm, gm.Groups(0), 0, True)
Dim g As FarPoint.Web.Spread.Model.Group = dg.Parent
Dim msg As String = g.ToString()
Response.Write("alert('" & msg & "')")
参照

Group クラス
Group メンバ

 

 


© 2003-2015, GrapeCity inc. All rights reserved.