DragEventHandler 代理人

定義

代表將處理拖放路由的事件的方法,例如 DragEnterRepresents a method that will handle drag-and-drop routed events, for example DragEnter.

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

參數

sender
Object

附加事件處理常式的物件。The object where the event handler is attached.

e
DragEventArgs

事件資料。The event data.

繼承
DragEventHandler

備註

這個委派會與下列附加事件搭配使用。This delegate is used with the following attached events.

這個委派也會搭配基底元素上的下列路由事件使用。This delegate is also used with the following routed events on base elements. 這些路由事件會轉送先前列出的附加事件, 讓中WPFWPF的一般元素模型更容易存取。These routed events forward the previously listed attached events to make them more accessible to the general element model in WPFWPF.

附加事件和基底元素路由事件會共用其事件資料, 而路由事件的反升和通道版本也會共用事件資料。The attached events and the base element routed events share their event data, and the bubbling and tunneling versions of the routed events also share event data. 這可能會影響事件在移動事件路由時的已處理特性。This can affect the handled characteristics of the event as it travels the event route. 如需詳細資訊, 請參閱輸入總覽For details, see Input Overview.

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。Gets an object that represents the method represented by the specified delegate.

適用於