PowerTools SPREAD for Windows Forms 8.0J
Remove メソッド (Rows)


開始行インデックス
削除する行数
行または行範囲を削除します。
構文
'Declaration
 
Public Sub Remove( _
   ByVal index As Integer, _
   ByVal count As Integer _
) 
'使用法
 
Dim instance As Rows
Dim index As Integer
Dim count As Integer
 
instance.Remove(index, count)
public void Remove( 
   int index,
   int count
)

パラメータ

index
開始行インデックス
count
削除する行数
次のサンプルコードは、アクティブシートから行を5行削除します。
fpSpread1.ActiveSheet.Rows.Remove(0, 5);

listBox1.Items.Add(fpSpread1.ActiveSheet.Rows.Count.ToString());
FpSpread1.ActiveSheet.Rows.Remove(0, 5)

ListBox1.Items.Add(FpSpread1.ActiveSheet.Rows.Count.ToString())
参照

Rows クラス
Rows メンバ
Remove メソッド (Row クラス)

 

 


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