PowerTools SPREAD for Windows Forms 10.0J
Remove メソッド (SheetViewCollection)


コレクションから削除するシート(SheetViewオブジェクト)
指定したシートをコレクションから削除します。
構文
'Declaration
 
Public Overridable Sub Remove( _
   ByVal sheetView As SheetView _
) 
'使用法
 
Dim instance As SheetViewCollection
Dim sheetView As SheetView
 
instance.Remove(sheetView)
public virtual void Remove( 
   SheetView sheetView
)

パラメータ

sheetView
コレクションから削除するシート(SheetViewオブジェクト)
次のサンプルコードは、指定したシートをコレクションから削除します。
System.Collections.ArrayList coll = new System.Collections.ArrayList(3); 
FarPoint.Win.Spread.SheetView Sheet1 = new FarPoint.Win.Spread.SheetView();
FarPoint.Win.Spread.SheetView Sheet2 = new FarPoint.Win.Spread.SheetView();
FarPoint.Win.Spread.SheetView Sheet3 = new FarPoint.Win.Spread.SheetView();
Sheet1.SheetName = "One";
Sheet2.SheetName = "Two";
Sheet3.SheetName = "Three";
coll.AddRange(new Object[] {Sheet1, Sheet2, Sheet3});
fpSpread1.Sheets.AddRange(coll);
fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always;
fpSpread1.Sheets.Remove(Sheet1);
Dim coll As New System.Collections.ArrayList(3)
Dim Sheet1 As New FarPoint.Win.Spread.SheetView()
Dim Sheet2 As New FarPoint.Win.Spread.SheetView()
Dim Sheet3 As New FarPoint.Win.Spread.SheetView()
Sheet1.SheetName = "One"
Sheet2.SheetName = "Two"
Sheet3.SheetName = "Three"
coll.AddRange(New Object() {Sheet1, Sheet2, Sheet3})
FpSpread1.Sheets.AddRange(coll)
FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always
FpSpread1.Sheets.Remove(Sheet1)
参照

SheetViewCollection クラス
SheetViewCollection メンバ
RemoveAt メソッド

開発者ガイド

シートの削除

 

 


© 2004-2017, GrapeCity inc. All rights reserved.