ToolActionEventArgs Constructor (ToolAction, EventArgs, InputDevice, Int32)
Initializes a new instance of the ToolActionEventArgs class.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
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
)
Parameters
- toolAction
Type: Microsoft.Windows.Design.Interaction.ToolAction
The tool action associated with this event.
- sourceEvent
Type: System.EventArgs
The event that caused this action.
- inputDevice
Type: System.Windows.Input.InputDevice
The input device to associate with this event.
- timestamp
Type: System.Int32
The time when the input occurred.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | sourceEvent is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace