初始化 ToolActionEventArgs 类的新实例。
命名空间: Microsoft.Windows.Design.Interaction
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public Sub New ( _
toolAction As ToolAction, _
sourceEvent As EventArgs, _
inputDevice As InputDevice, _
timestamp As Integer _
)
public ToolActionEventArgs(
ToolAction toolAction,
EventArgs sourceEvent,
InputDevice inputDevice,
int timestamp
)
public:
ToolActionEventArgs(
ToolAction toolAction,
EventArgs^ sourceEvent,
InputDevice^ inputDevice,
int timestamp
)
new :
toolAction:ToolAction *
sourceEvent:EventArgs *
inputDevice:InputDevice *
timestamp:int -> ToolActionEventArgs
public function ToolActionEventArgs(
toolAction : ToolAction,
sourceEvent : EventArgs,
inputDevice : InputDevice,
timestamp : int
)
参数
- toolAction
类型:Microsoft.Windows.Design.Interaction.ToolAction
与此事件关联的工具操作。
- sourceEvent
类型:System.EventArgs
引起此操作的事件。
- inputDevice
类型:System.Windows.Input.InputDevice
要与此事件关联的输入设备。
- timestamp
类型:System.Int32
发生输入的时间。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | sourceEvent 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.Interaction 命名空间