PowerTools ActiveReports for .NET 11.0J
Remove(Int32) メソッド
使用例 

コレクションから削除するフィールドのインデックスを指定します。

指定したインデックスのフィールドをコレクションから削除します。
構文
'宣言
 
Public Overloads Sub Remove( _
   ByVal index As Integer _
) 
public void Remove( 
   int index
)

パラメータ

index

コレクションから削除するフィールドのインデックスを指定します。

使用例
private void UnboundGrp_DataInitialize(object sender, System.EventArgs eArgs)
{
    Fields.Add("CategoryID");
    Fields.Add("CategoryName");
    Fields.Add("ProductName");
    Fields.Add("UnitsInStock");
    Fields.Add("Description");
    Fields.Add("TotalLabel");
    Fields.Remove(4);
}
Private Sub rptUnboundGrp_DataInitialize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.DataInitialize
  Fields.Add("CategoryID")
  Fields.Add("CategoryName")
  Fields.Add("ProductName")
  Fields.Add("UnitsInStock")
  Fields.Add("Description")
  Fields.Add("TotalLabel")
  Fields.Remove(4)
End Sub
参照

関連項目

FieldCollection クラス
FieldCollection メンバ
オーバーロード一覧

 

 


©2003-2017 GrapeCity inc. All rights reserved.