Table of Contents

Method RaiseSelecting

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

RaiseSelecting(CommandContext)

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(CommandContext ctx)

Parameters

ctx CommandContext

Returns

bool?

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

Remarks

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