DragEventArgs DragEventArgs DragEventArgs DragEventArgs Class


包含與所有拖放事件 (DragEnterDragLeaveDragOverDrop) 相關的引數。Contains arguments relevant to all drag-and-drop events (DragEnter, DragLeave, DragOver, and Drop).

public ref class DragEventArgs sealed : System::Windows::RoutedEventArgs
public sealed class DragEventArgs : System.Windows.RoutedEventArgs
type DragEventArgs = class
    inherit RoutedEventArgs
Public NotInheritable Class DragEventArgs
Inherits RoutedEventArgs


AllowedEffects AllowedEffects AllowedEffects AllowedEffects

取得 DragDropEffects 列舉型別 (Enumeration) 的成員,其指定來源拖曳事件所允許的作業。Gets a member of the DragDropEffects enumeration that specifies which operations are allowed by the originator of the drag event.

Data Data Data Data

取得資料物件,其中含有與對應的拖曳事件關聯的資料。Gets a data object that contains the data associated with the corresponding drag event.

Effects Effects Effects Effects

取得或設定目標拖放作業。Gets or sets the target drag-and-drop operation.

Handled Handled Handled Handled

取得或設定值,這個值表示路由事件在傳送路由時之事件處理的目前狀態。Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.

(Inherited from RoutedEventArgs)
KeyStates KeyStates KeyStates KeyStates

取得旗標列舉型別,表示 SHIFT、CTRL 和 ALT 鍵的目前狀態,以及滑鼠按鍵的狀態。Gets a flag enumeration indicating the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.

OriginalSource OriginalSource OriginalSource OriginalSource

在父類別進行任何可能的 Source 調整之前,取得純點擊測試所判定的原始報告來源。Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.

(Inherited from RoutedEventArgs)
RoutedEvent RoutedEvent RoutedEvent RoutedEvent

取得或設定與這個 RoutedEventArgs 執行個體相關聯的 RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance.

(Inherited from RoutedEventArgs)
Source Source Source Source

取得或設定引發事件之物件的參考。Gets or sets a reference to the object that raised the event.

(Inherited from RoutedEventArgs)


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetPosition(IInputElement) GetPosition(IInputElement) GetPosition(IInputElement) GetPosition(IInputElement)

傳回相對於指定 IInputElement 的置放點。Returns a drop point that is relative to a specified IInputElement.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
InvokeEventHandler(Delegate, Object) InvokeEventHandler(Delegate, Object) InvokeEventHandler(Delegate, Object) InvokeEventHandler(Delegate, Object)

在衍生類別中覆寫時,提供以特定類型方式叫用事件處理常式的方式,這可透過基底實作來提高效率。When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation.

(Inherited from RoutedEventArgs)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnSetSource(Object) OnSetSource(Object) OnSetSource(Object) OnSetSource(Object)

在衍生類別中覆寫時,每當執行個體的 Source 屬性值變更,便會提供通知回呼進入點。When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.

(Inherited from RoutedEventArgs)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)