PowerTools SPREAD for ASP.NET 8.0J
Remove メソッド (GroupInfoCollection)

削除する GroupInfo オブジェクト
指定した GroupInfo オブジェクトをコレクションから削除します。
構文
'Declaration
 
Public Overridable Sub Remove( _
   ByVal value As GroupInfo _
) 
public virtual void Remove( 
   GroupInfo value
)

パラメータ

value
削除する GroupInfo オブジェクト
次のサンプル コードは、グループ項目がコレクションに属する場合、そのグループ項目を削除します。
FpSpread1.ActiveSheetView.AllowColumnMove = true;
FpSpread1.ActiveSheetView.GroupBarVisible = true;
FpSpread1.ActiveSheetView.AllowGroup = true;

FarPoint.Web.Spread.GroupInfo gi = new FarPoint.Web.Spread.GroupInfo();
gi.BackColor = Color.Yellow;
FarPoint.Web.Spread.GroupInfo gi2 = new FarPoint.Web.Spread.GroupInfo();
gi2.BackColor = Color.Green;
FarPoint.Web.Spread.GroupInfoCollection gic = new FarPoint.Web.Spread.GroupInfoCollection();
gic.AddRange(new FarPoint.Web.Spread.GroupInfo[] {gi, gi2});
FpSpread1.ActiveSheetView.GroupInfos.Add(gic[0]);
if (gic.Contains(gi)) {
    gic.Remove(gi);
}

FpSpread1.ActiveSheetView.AllowColumnMove = True
FpSpread1.ActiveSheetView.GroupBarVisible = True
FpSpread1.ActiveSheetView.AllowGroup = True

Dim gi As New FarPoint.Web.Spread.GroupInfo
gi.BackColor = Color.Yellow
Dim gi2 As New FarPoint.Web.Spread.GroupInfo
gi2.BackColor = Color.Green
Dim gic As New FarPoint.Web.Spread.GroupInfoCollection()
gic.AddRange(New FarPoint.Web.Spread.GroupInfo() {gi, gi2})
FpSpread1.ActiveSheetView.GroupInfos.Add(gic(0))
If gic.Contains(gi) Then
gic.Remove(gi)
End If
参照

GroupInfoCollection クラス
GroupInfoCollection メンバ

 

 


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