BehaviorDragDropEventHandler Delegat

Definicja

Reprezentuje metody, które będą obsługiwać BeginDrag zdarzenia i EndDrag obiektu BehaviorService. Klasa ta nie może być dziedziczona.

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

Parametry

sender
Object

Źródło zdarzenia.

e
BehaviorDragDropEventArgs

Element BehaviorDragDropEventArgs zawierający dane zdarzenia.

Uwagi

Podczas tworzenia delegata BehaviorDragDropEventHandler należy zidentyfikować metodę obsługi zdarzenia. 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