初始化 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 命名空間