Class SchemeManager
- Namespace
- Terminal.Gui.Configuration
- Assembly
- Terminal.Gui.dll
Holds the Schemes that define the Attributes that are used by views to
render
themselves. A Scheme is a mapping from VisualRoles (such as
Focus) to Attributes.
A Scheme defines how a View should look based on its purpose (e.g. Menu or Dialog).
public sealed class SchemeManager
- Inheritance
-
SchemeManager
- Inherited Members
Properties
- Schemes
Use AddScheme(string, Scheme), GetScheme(Schemes), GetSchemeNames(), GetSchemesForCurrentTheme(), etc... instead.
Methods
- AddScheme(string, Scheme)
Adds a new Scheme to SchemeManager. If the Scheme has already been added, it will be updated to
scheme.
- GetScheme(string)
Gets the Scheme for the specified string.
- GetSchemeNames()
Convenience method to get the names of the schemes.
- GetSchemesForCurrentTheme()
Get the dictionary of schemes from the current theme. Current means active.
- RemoveScheme(string)
Removes a Scheme from SchemeManager.
- SchemeNameToSchemes(string)
Converts a string to a Schemes enum value.
- SchemesToSchemeName(Schemes)
Gets the name of the specified Schemes. Will throw an exception if
schemeNameis not a built-in Scheme.