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
schemeNamestringThe name of the scheme to retrieve.
schemeSchemeWhen this method returns true, contains the resolved Scheme; otherwise null.