DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vloží buňku do kolekce.
public:
void Insert(int index, System::Windows::Forms::DataGridViewCell ^ dataGridViewCell);
public void Insert(int index, System.Windows.Forms.DataGridViewCell dataGridViewCell);
member this.Insert : int * System.Windows.Forms.DataGridViewCell -> unit
Public Sub Insert (index As Integer, dataGridViewCell As DataGridViewCell)
Parametry
- index
- Int32
Index, do kterého dataGridViewCell by se měl vložit.
- dataGridViewCell
- DataGridViewCell
Objekt, který má být přidán do objektu DataGridViewSelectedCellCollection.
Výjimky
Vždycky vyhodili.
Poznámky
Tato metoda není pro tuto třídu relevantní. Třídu nelze změnit DataGridViewSelectedCellCollection přímo. Chcete-li přidat buňku do objektu DataGridViewSelectedCellCollection, použijte DataGridViewCell.Selected vlastnost.