UsageWriterUsagePrefixColor Property

Gets or sets the color applied by the WriteUsageSyntaxPrefix method.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
C#
public TextFormat UsagePrefixColor { get; set; }

Property Value

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

Remarks

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

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

With the base implementation, only the "Usage:" portion of the string has color; the executable name does not.

See Also