Home Cooker Classes Others Rice CookerGX
Classes  >  canceleventargs  >  Cancel(bool)
canceleventargs class : Cancel(bool) setter

Description

Sets a value indicating whether the event should be canceled.

Syntax

canceleventargsInstance.Cancel = cancel

Arguments

ClassNameDescription
boolcancelA value indicating whether the event should be canceled.

Return value

None

Sample code

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

canceleventargsInstance.Cancel = true;

Notes

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

When want to cancel the event, set true. When do not want to cancel, set false.

Links for reference

Copyright © Rice All rights reserved.