UsageWriter.CommandDescriptionColor Property

Gets or sets the color applied by the base implementation of the WriteCommandDescription(CommandInfo) method.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public TextFormat CommandDescriptionColor { get; set; }

Property Value

TextFormat
The virtual terminal sequence for a color. The default value is TextFormat.ForegroundGreen.

Remarks

The color will only be used if the UseColor property is true.

The portion of the string that has color will end with the ColorReset.

With the default implementation, only the command name portion of the string has color; the application name does not.

See Also