DataGridViewCellCollection.IList.Add(Object) Yöntem
Tanım
Bir öğeyi koleksiyona ekler.Adds an item to the collection.
virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add
Parametreler
- value
- Object
DataGridViewCellKoleksiyona eklemek için.The DataGridViewCell to add to the collection.
Döndürülenler
Yeni öğenin eklendiği konum.The position into which the new element was inserted.
Uygulamalar
Özel durumlar
value
bir değil DataGridViewCell .value
is not a DataGridViewCell.
Bunun sahibi olan satır DataGridViewCellCollection bir DataGridView denetime aittir.The row that owns this DataGridViewCellCollection already belongs to a DataGridView control.
-veya--or-
value
zaten bir öğesine ait olan bir hücreyi temsil eder DataGridViewRow .value
represents a cell that already belongs to a DataGridViewRow.
Açıklamalar
Satırı bir denetime eklediğinizde, içerdiği hücrelerin sayısı her zaman denetimdeki sütun sayısıyla eşleşir, bu nedenle bu yöntem artık yararlı değildir.Once you add the row to a control, the number of cells it contains always matches the number of columns in the control, so this method is no longer useful.
Bu üye, açık bir arabirim üyesi uygulamasıdır.This member is an explicit interface member implementation. Bu, yalnızca DataGridViewCellCollection örnek bir arabirime yayınlandığınızda kullanılabilir IList .It can be used only when the DataGridViewCellCollection instance is cast to an IList interface.