xtd 0.2.0
Loading...
Searching...
No Matches

◆ cancel_event_handler

using xtd::forms::cancel_event_handler = typedef delegate<void(object& sender, cancel_event_args& e)>

Represents the method that handles a cancelable event.

Parameters
senderThe source of the event.
eA cancel_event_args that contains the event data.
Header
#include <xtd/forms/cancel_event_handler>
Namespace
xtd::forms
Library
xtd.forms
Remarks
When you create a cancel_event_handler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event-handler method is called whenever the event occurs, unless you remove the delegate.