Gutenberg

Class ConsoleFormattingAnnotation.ForegroundColor

Set the ForegroundColor

Inheritance
Implements
Declaration
public class ForegroundColor : ConsoleFormattingAnnotation

Constructors

ForegroundColor(ConsoleFormattingAnnotation.ForegroundColor)

Declaration
protected ForegroundColor(ConsoleFormattingAnnotation.ForegroundColor original)
Parameters
Type Name Description

ConsoleFormattingAnnotation.ForegroundColor

original

ForegroundColor(ConsoleColor)

Set the ForegroundColor

Declaration
public ForegroundColor(ConsoleColor Color)
Parameters
Type Name Description

ConsoleColor

Color

The colour

Properties

Color

The colour

Declaration
public ConsoleColor Color { get; set; }
Property Value
Type Description

ConsoleColor

EqualityContract

Declaration
protected override Type EqualityContract { get; }
Property Value
Type Description

Type

Overrides
ConsoleFormattingAnnotation.EqualityContract

Methods

<Clone>$()

Declaration
public override ConsoleFormattingAnnotation.ForegroundColor <Clone>$()
Returns
Type Description

ConsoleFormattingAnnotation.ForegroundColor

Overrides
ConsoleFormattingAnnotation.<Clone>$()

Deconstruct(out ConsoleColor)

Declaration
public void Deconstruct(out ConsoleColor Color)
Parameters
Type Name Description

ConsoleColor

Color

Equals(ConsoleFormattingAnnotation)

Declaration
public sealed override bool Equals(ConsoleFormattingAnnotation other)
Parameters
Type Name Description

ConsoleFormattingAnnotation

other

Returns
Type Description

Boolean

Overrides
ConsoleFormattingAnnotation.Equals(ConsoleFormattingAnnotation)

Equals(ConsoleFormattingAnnotation.ForegroundColor)

Declaration
public virtual bool Equals(ConsoleFormattingAnnotation.ForegroundColor other)
Parameters
Type Name Description

ConsoleFormattingAnnotation.ForegroundColor

other

Returns
Type Description

Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description

Object

obj

Returns
Type Description

Boolean

Overrides
ConsoleFormattingAnnotation.Equals(Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description

Int32

Overrides
ConsoleFormattingAnnotation.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected override bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description

StringBuilder

builder

Returns
Type Description

Boolean

Overrides
ConsoleFormattingAnnotation.PrintMembers(StringBuilder)

ToString()

Declaration
public override string ToString()
Returns
Type Description

String

Overrides
ConsoleFormattingAnnotation.ToString()

Operators

Equality(ConsoleFormattingAnnotation.ForegroundColor, ConsoleFormattingAnnotation.ForegroundColor)

Declaration
public static bool operator ==(ConsoleFormattingAnnotation.ForegroundColor left, ConsoleFormattingAnnotation.ForegroundColor right)
Parameters
Type Name Description

ConsoleFormattingAnnotation.ForegroundColor

left

ConsoleFormattingAnnotation.ForegroundColor

right

Returns
Type Description

Boolean

Inequality(ConsoleFormattingAnnotation.ForegroundColor, ConsoleFormattingAnnotation.ForegroundColor)

Declaration
public static bool operator !=(ConsoleFormattingAnnotation.ForegroundColor left, ConsoleFormattingAnnotation.ForegroundColor right)
Parameters
Type Name Description

ConsoleFormattingAnnotation.ForegroundColor

left

ConsoleFormattingAnnotation.ForegroundColor

right

Returns
Type Description

Boolean

Implements

System.IEquatable<T>
System.IEquatable<T>