Event ButtonEvent
Button events are raised when a button is pressed on the signature device. Please note this event is not raised by custom buttons in simple dialog mode. For these there is a dedicated PenEvent.
Namespace: Sig.DeviceAPI
Assembly: SigDeviceAPI.dll
Syntax
event EventHandler<ButtonEventArgs> ButtonEvent
Returns
Type | Description |
---|---|
System.EventHandler<ButtonEventArgs> |
Examples
C#
driver.ButtonEvent += (object sender, ButtonEventArgs e) =>
{
Console.WriteLine($"Button {e.ButtonKind} was pressed.");
};
VB.NET
Private Sub OnButtonEvent(sender As Object, args As ButtonEventArgs) Handles driver.ButtonEvent
Console.WriteLine($"Button {args.ButtonKind} was pressed.")
End Sub