FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetViewCollection クラス : Contains メソッド |
オーバーロード | 説明 |
---|---|
Contains | コレクションに指定したシートがを含まれるかどうかを判定します。 |
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(); bool b; coll.AddRange(new object[] {Sheet1, Sheet2, Sheet3}); fpSpread1.Sheets.AddRange(coll); fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always; b = fpSpread1.Sheets.Contains(Sheet1); listBox1.Items.Add(b.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() Dim b As Boolean coll.AddRange(New Object() {Sheet1, Sheet2, Sheet3}) FpSpread1.Sheets.AddRange(coll) FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always b = FpSpread1.Sheets.Contains(Sheet1) ListBox1.Items.Add(b.ToString())