Home Notices Documents Classes Download Others Rice
Classes  >  canceleventargs  >  EHSwitch
canceleventargs class : EHSwitch getter

Description

Gets the switch to control the handler execution.

Syntax

canceleventargsInstance.EHSwitch

Arguments

None

Return value

ClassDescription
ehswitchSwitch to control the handler execution.

Sample code

1:

open method void anyWindowClosingHandler(canceleventargs cea)

2:

...

3:

ehswitch ehs = cea.EHSwitch;

4:

ehs.Stop(); // Stops handling.

5:

...

6:

endmethod

Notes

You can use the EHSwitch to control the handler execution.

The canceleventargs will only appear as an argument of the window closing event handler.

Links for reference

None

Copyright © Rice All rights reserved.