Table of Contents

Method RaiseSelecting

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

RaiseSelecting(ICommandContext?)

Called when the user has performed an action (e.g. Select) causing the View to change state. Calls OnSelecting(CommandEventArgs) which can be cancelled; if not cancelled raises Accepting. event. The default Select handler calls this method.

protected bool? RaiseSelecting(ICommandContext? ctx)

Parameters

ctx ICommandContext

Returns

bool?

null if no event was raised; input processing should continue. false if the event was raised and was not handled (or cancelled); input processing should continue. true if the event was raised and handled (or cancelled); input processing should stop.

Remarks

The Selecting event should be raised after the state of the View has been changed and before see Accepting.