DataGridViewCellCollection.IndexOf(DataGridViewCell) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳指定儲存格的索引。
public:
int IndexOf(System::Windows::Forms::DataGridViewCell ^ dataGridViewCell);
public int IndexOf(System.Windows.Forms.DataGridViewCell dataGridViewCell);
member this.IndexOf : System.Windows.Forms.DataGridViewCell -> int
Public Function IndexOf (dataGridViewCell As DataGridViewCell) As Integer
參數
- dataGridViewCell
- DataGridViewCell
在收藏中尋找牢房。
傳回
若參數值在集合中,則為以零為基礎的索引 dataGridViewCell ;否則為 -1。