Table of Contents

Method TryGetScheme

Namespace
Terminal.Gui.Configuration
Assembly
Terminal.Gui.dll

TryGetScheme(string, out Scheme?)

Attempts to get the Scheme for the specified name without throwing. Returns false and sets scheme to null if the scheme is not found, or if the configuration is not in a state where schemes can be resolved.

public static bool TryGetScheme(string schemeName, out Scheme? scheme)

Parameters

schemeName string

The name of the scheme to retrieve.

scheme Scheme

When this method returns true, contains the resolved Scheme; otherwise null.

Returns

bool

true if the scheme was found; otherwise false.