API Reference
Enum
ColorDepth
Colour fidelity a terminal supports. Themes map their semantic tokens down to the detected depth.
Inheritance
- Enum
- ColorDepth
Usage
Explore 25 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Property RenderContext.Depth
- Field ColorDepth.Ansi16
- Field ColorDepth.Ansi256
- Field ColorDepth.None
- Field ColorDepth.TrueColor
- Property TerminalProfile.ColorDepth
- Property ExportOptions.ColorDepth
Accepted by parameters 18
- Constructor TerminalProfile.TerminalProfile
- Method TerminalProfile.Fixed
- Method TerminalProfile.WithColorDepth
- Constructor WriterTarget.WriterTarget
- Method SgrEncoder.Append
- Method SgrEncoder.Encode
- Method Color.Downsample
- Method ITheme.Resolve
- Method ITheme.TryResolve
- Method Style.Downsample
- Method Theme.Resolve
- Method Theme.TryResolve
- Method ThemeColor.Resolve
- Method ThemeStyle.Resolve
- Method TestTerminal.Profile
- Method TestTerminal.Target
- Method Markup.Parse
- Method Markup.TryParseStyle
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from Enum
Parameters
- obj Object?
ToString 4 overloads
public String ToString(IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
public String ToString(String? format, IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String?
- provider IFormatProvider?
Values
public const ColorDepth None #No colour at all (NO_COLOR, plain mode, logs that must stay clean).
Value:
0public const ColorDepth Ansi16 #The 16 standard ANSI colours (Windows Server 2016 conhost, most CI logs).
Value:
1public const ColorDepth TrueColor #24-bit RGB colour (Windows 10 1703+, Windows Terminal, VS Code, modern terminals).
Value:
3