Table of Contents

Method TryGetTarget

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

TryGetTarget(out View?)

Attempts to retrieve the Target view. Returns false if the target has been collected or was never set.

public bool TryGetTarget(out View? target)

Parameters

target View

When this method returns true, contains the target View; otherwise, null.

Returns

bool

true if the target view is still alive; otherwise, false.