Method TryGet | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

TryGet(TEvent, out TBinding?)

Gets the commands bound with the specified TEvent.

public bool TryGet(TEvent eventArgs, out TBinding? binding)

Parameters

eventArgs TEvent

The TEvent to check.

binding TBinding

When this method returns, contains the commands bound with the TEvent, if the TEvent is not found; otherwise, null. This parameter is passed uninitialized.

Returns

bool

true if the TEvent is bound; otherwise false.

Edit this page