共用方式為


ToolActionEventArgs 建構函式 (ToolAction, EventArgs, InputDevice, Int32)

初始化 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
)

參數

例外狀況

例外狀況 條件
ArgumentNullException

sourceEvent 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

ToolActionEventArgs 類別

ToolActionEventArgs 多載

Microsoft.Windows.Design.Interaction 命名空間

其他資源

WPF 設計工具擴充性

工具架構