Home Cooker Classes Others Rice CookerGX
Classes  >  canceleventargs  >  Cancel
canceleventargs class : Cancel getter

Description

Gets a value indicating whether the event should be canceled.

Syntax

canceleventargsInstance.Cancel

Arguments

None

Return value

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

Sample code

//canceleventargsInstance is an instance of canceleventargs. It is passed as an argument to the event handler.

bool wantCancel = canceleventargsInstance.Cancel;

Notes

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

When the event is canceled, returns true. When the event is not canceled, returns false.

Links for reference

Copyright © Rice All rights reserved.