Поделиться через


DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) Метод

Определение

Вставляет ячейку в коллекцию.

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)

Параметры

index
Int32

Индекс, по которому dataGridViewCell следует вставить.

dataGridViewCell
DataGridViewCell

Объект, добавляемый в объект DataGridViewSelectedCellCollection.

Исключения

Всегда вызывается.

Комментарии

Этот метод не относится к этому классу. Нельзя напрямую DataGridViewSelectedCellCollection изменить класс. Чтобы добавить ячейку в DataGridViewSelectedCellCollectionобъект, используйте DataGridViewCell.Selected свойство.

Применяется к

См. также раздел