DragEventArgs.KeyStates 属性

定义

获取一个标志枚举,指示 Shift、Ctrl 和 Alt 键的当前状态以及鼠标按钮的状态。

public:
 property System::Windows::DragDropKeyStates KeyStates { System::Windows::DragDropKeyStates get(); };
public System.Windows.DragDropKeyStates KeyStates { get; }
member this.KeyStates : System.Windows.DragDropKeyStates
Public ReadOnly Property KeyStates As DragDropKeyStates

属性值

DragDropKeyStates 标志枚举的一个或多个成员。

注解

拖放操作的效果可以根据特定键的状态进行调整。 例如,数据可以复制或移动,具体取决于在拖放操作期间是按 Ctrl 键还是 SHIFT 键。

适用于