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

Description

Gets a value indicating whether the event will be canceled.

Syntax

canceleventargsInstance.Cancel

Arguments

None

Return value

ClassDescription
boolA value that indicates whether the event will be canceled.

Sample code

1:

open method void anyWindowClosingHandler(canceleventargs cea)

2:

...

3:

bool cancel = cea.Cancel;

4:

...

5:

endmethod

Notes

It's a wrapper of the System.ComponentModel.CancelEventArgs.Cancel property.

When the event will be canceled, returns true. When the event will not be canceled, returns false.

Default value is false.

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

Links for reference

Copyright © Rice All rights reserved.