Gutenberg

Class ConsoleFormattingAnnotation.ForegroundColor

Set the ForegroundColor

Inheritance
Implements
Inherited Members
Declaration
public record ConsoleFormattingAnnotation.ForegroundColor : ConsoleFormattingAnnotation, IEquatable<ConsoleFormattingAnnotation>, IEquatable<ConsoleFormattingAnnotation.ForegroundColor>

Constructors

ForegroundColor(ForegroundColor)

Set the 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; init; }
Property Value
Type Description

ConsoleColor

EqualityContract

Set the ForegroundColor

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

Type

Overrides
ConsoleFormattingAnnotation.EqualityContract

Methods

Deconstruct(out ConsoleColor)

Set the ForegroundColor

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

ConsoleColor

Color

Equals(ConsoleFormattingAnnotation?)

Set the ForegroundColor

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

ConsoleFormattingAnnotation

other

Returns
Type Description

bool

Overrides
ConsoleFormattingAnnotation.Equals(ConsoleFormattingAnnotation?)

Equals(ForegroundColor?)

Set the ForegroundColor

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

ConsoleFormattingAnnotation.ForegroundColor

other

Returns
Type Description

bool

Equals(object?)

Set the ForegroundColor

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

object

obj

Returns
Type Description

bool

Overrides
ConsoleFormattingAnnotation.Equals(object?)

GetHashCode()

Set the ForegroundColor

Declaration
public override int GetHashCode()
Returns
Type Description

int

Overrides
ConsoleFormattingAnnotation.GetHashCode()

PrintMembers(StringBuilder)

Set the ForegroundColor

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

StringBuilder

builder

Returns
Type Description

bool

Overrides
ConsoleFormattingAnnotation.PrintMembers(StringBuilder)

ToString()

Set the ForegroundColor

Declaration
public override string ToString()
Returns
Type Description

string

Overrides
ConsoleFormattingAnnotation.ToString()

<Clone>$()

Set the ForegroundColor

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

ConsoleFormattingAnnotation.ForegroundColor

Overrides
ConsoleFormattingAnnotation.<Clone>$()

Operators

operator ==(ForegroundColor?, ForegroundColor?)

Set the 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

bool

operator !=(ForegroundColor?, ForegroundColor?)

Set the 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

bool

Implements

IEquatable<T>
IEquatable<T>