DataGridViewCellMouseEventHandler Delegat

Definicja

Reprezentuje metodę, która będzie obsługiwać zdarzenia związane z myszą wywoływane przez element DataGridView.

public delegate void DataGridViewCellMouseEventHandler(System::Object ^ sender, DataGridViewCellMouseEventArgs ^ e);
public delegate void DataGridViewCellMouseEventHandler(object sender, DataGridViewCellMouseEventArgs e);
public delegate void DataGridViewCellMouseEventHandler(object? sender, DataGridViewCellMouseEventArgs e);
type DataGridViewCellMouseEventHandler = delegate of obj * DataGridViewCellMouseEventArgs -> unit
Public Delegate Sub DataGridViewCellMouseEventHandler(sender As Object, e As DataGridViewCellMouseEventArgs)

Parametry

sender
Object

Źródło zdarzenia.

e
DataGridViewCellMouseEventArgs

Element DataGridViewCellMouseEventArgs zawierający dane zdarzenia.

Uwagi

Delegat DataGridViewCellMouseEventHandler obsługuje następujące DataGridView zdarzenia:

Podczas tworzenia delegata DataGridViewCellMouseEventHandler należy zidentyfikować metodę, która będzie obsługiwać zdarzenie. Aby skojarzyć zdarzenie z programem obsługi zdarzeń, dodaj wystąpienie delegata do zdarzenia. Program obsługi zdarzeń jest wywoływany przy każdym wystąpieniu zdarzenia, o ile nie usunięto delegata. Aby uzyskać więcej informacji na temat delegatów programu obsługi zdarzeń, zobacz Obsługa i podnoszenie zdarzeń.

Metody rozszerzania

GetMethodInfo(Delegate)

Pobiera obiekt reprezentujący metodę reprezentowaną przez określonego delegata.

Dotyczy

Zobacz też