Table of Contents

StyleExtensions.Foreground Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

Creates a new style from the specified one with the specified foreground color.

public static CliStyle Foreground(this CliStyle style, CliColor color)

Parameters

style CliStyle

The style.

color CliColor

The foreground color.

Returns

CliStyle

The same instance so that multiple calls can be chained.