Gutenberg

Class ConsoleFormattingAnnotation.BackgroundColor

Set the BackgroundColor

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

Constructors

BackgroundColor(BackgroundColor)

Set the BackgroundColor

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

ConsoleFormattingAnnotation.BackgroundColor

original

BackgroundColor(ConsoleColor)

Set the BackgroundColor

Declaration
public BackgroundColor(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 BackgroundColor

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

Type

Overrides
ConsoleFormattingAnnotation.EqualityContract

Methods

Deconstruct(out ConsoleColor)

Set the BackgroundColor

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

ConsoleColor

Color

Equals(ConsoleFormattingAnnotation?)

Set the BackgroundColor

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

ConsoleFormattingAnnotation

other

Returns
Type Description

bool

Overrides
ConsoleFormattingAnnotation.Equals(ConsoleFormattingAnnotation?)

Equals(BackgroundColor?)

Set the BackgroundColor

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

ConsoleFormattingAnnotation.BackgroundColor

other

Returns
Type Description

bool

Equals(object?)

Set the BackgroundColor

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

object

obj

Returns
Type Description

bool

Overrides
ConsoleFormattingAnnotation.Equals(object?)

GetHashCode()

Set the BackgroundColor

Declaration
public override int GetHashCode()
Returns
Type Description

int

Overrides
ConsoleFormattingAnnotation.GetHashCode()

PrintMembers(StringBuilder)

Set the BackgroundColor

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

StringBuilder

builder

Returns
Type Description

bool

Overrides
ConsoleFormattingAnnotation.PrintMembers(StringBuilder)

ToString()

Set the BackgroundColor

Declaration
public override string ToString()
Returns
Type Description

string

Overrides
ConsoleFormattingAnnotation.ToString()

<Clone>$()

Set the BackgroundColor

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

ConsoleFormattingAnnotation.BackgroundColor

Overrides
ConsoleFormattingAnnotation.<Clone>$()

Operators

operator ==(BackgroundColor?, BackgroundColor?)

Set the BackgroundColor

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

ConsoleFormattingAnnotation.BackgroundColor

left

ConsoleFormattingAnnotation.BackgroundColor

right

Returns
Type Description

bool

operator !=(BackgroundColor?, BackgroundColor?)

Set the BackgroundColor

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

ConsoleFormattingAnnotation.BackgroundColor

left

ConsoleFormattingAnnotation.BackgroundColor

right

Returns
Type Description

bool

Implements

IEquatable<T>
IEquatable<T>