DataGridViewRowCollection.GetNextRow メソッド

定義

指定した条件を満たすコレクション内の次の行を取得します。

オーバーロード

名前 説明
GetNextRow(Int32, DataGridViewElementStates)

指定した条件を満たす次の DataGridViewRow のインデックスを返します。

GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates)

指定した包含条件と除外条件を満たす次の DataGridViewRow のインデックスを返します。

GetNextRow(Int32, DataGridViewElementStates)

ソース:
DataGridViewRowCollection.cs
ソース:
DataGridViewRowCollection.cs
ソース:
DataGridViewRowCollection.cs
ソース:
DataGridViewRowCollection.cs
ソース:
DataGridViewRowCollection.cs

指定した条件を満たす次の DataGridViewRow のインデックスを返します。

public:
 int GetNextRow(int indexStart, System::Windows::Forms::DataGridViewElementStates includeFilter);
public int GetNextRow(int indexStart, System.Windows.Forms.DataGridViewElementStates includeFilter);
member this.GetNextRow : int * System.Windows.Forms.DataGridViewElementStates -> int
Public Function GetNextRow (indexStart As Integer, includeFilter As DataGridViewElementStates) As Integer

パラメーター

indexStart
Int32

メソッドが次の DataGridViewRowの検索を開始する必要がある行のインデックス。

includeFilter
DataGridViewElementStates

DataGridViewElementStates値のビットごとの組み合わせ。

返品

DataGridViewRowで指定された属性を持つindexStart後の最初のincludeFilterのインデックス。行が見つからない場合は -1。

例外

indexStart が -1 未満です。

includeFilter は、 DataGridViewElementStates 値の有効なビットごとの組み合わせではありません。

注釈

GetNextRow(Int32, DataGridViewElementStates)メソッドは、条件に一致する行の検索を開始し、indexStartの後に配置された行で始まります。

こちらもご覧ください

適用対象

GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates)

ソース:
DataGridViewRowCollection.cs
ソース:
DataGridViewRowCollection.cs
ソース:
DataGridViewRowCollection.cs
ソース:
DataGridViewRowCollection.cs
ソース:
DataGridViewRowCollection.cs

指定した包含条件と除外条件を満たす次の DataGridViewRow のインデックスを返します。

public:
 int GetNextRow(int indexStart, System::Windows::Forms::DataGridViewElementStates includeFilter, System::Windows::Forms::DataGridViewElementStates excludeFilter);
public int GetNextRow(int indexStart, System.Windows.Forms.DataGridViewElementStates includeFilter, System.Windows.Forms.DataGridViewElementStates excludeFilter);
member this.GetNextRow : int * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewElementStates -> int
Public Function GetNextRow (indexStart As Integer, includeFilter As DataGridViewElementStates, excludeFilter As DataGridViewElementStates) As Integer

パラメーター

indexStart
Int32

メソッドが次の DataGridViewRowの検索を開始する必要がある行のインデックス。

includeFilter
DataGridViewElementStates

DataGridViewElementStates値のビットごとの組み合わせ。

excludeFilter
DataGridViewElementStates

DataGridViewElementStates値のビットごとの組み合わせ。

返品

DataGridViewRowで指定された属性を持ち、includeFilterで指定された属性を持たない次のexcludeFilterのインデックス。行が見つからない場合は -1。

例外

indexStart が -1 未満です。

指定したフィルター値の一方または両方が、 DataGridViewElementStates 値の有効なビットごとの組み合わせではありません。

注釈

GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates)メソッドは、条件に一致する行の検索を開始し、indexStartの後に配置された行で始まります。

こちらもご覧ください

適用対象