GrapeCity SPREAD for Windows Forms 11.0J
Find メソッド (SheetViewCollection)


検索するシート(SheetViewオブジェクト)の名前
コレクションから指定した名前のシートを検索します。
構文
'Declaration
 
Public Function Find( _
   ByVal name As String _
) As SheetView
'使用法
 
Dim instance As SheetViewCollection
Dim name As String
Dim value As SheetView
 
value = instance.Find(name)
public SheetView Find( 
   string name
)

パラメータ

name
検索するシート(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();
coll.AddRange(new Object[] {Sheet1, Sheet2, Sheet3});
fpSpread1.Sheets.AddRange(coll);
fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always;
listBox1.Items.Add(fpSpread1.Sheets.Find("Sheet1").ToString());
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()
coll.AddRange(New Object() {Sheet1, Sheet2, Sheet3})
FpSpread1.Sheets.AddRange(coll)
FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always
ListBox1.Items.Add(FpSpread1.Sheets.Find("Sheet1").ToString())
参照

SheetViewCollection クラス
SheetViewCollection メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.