WithForeground(Color) Method
Creates a new style from the specified foreground color.
[Obsolete("Use ctor(..) instead")]
public static Style WithForeground(Color color)
- Namespace
- Spectre
.Console - Containing Type
- Style
Attributes
- ObsoleteAttribute
Parameters
- Color color
- The foreground color.