Class ConsoleFormattingAnnotation.BackgroundColor
Set the BackgroundColor
Inheritance
- object
- ConsoleFormattingAnnotation
- ConsoleFormattingAnnotation.BackgroundColor
Implements
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
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 |
|---|---|---|
original |
BackgroundColor(ConsoleColor)
Set the BackgroundColor
Declaration
public BackgroundColor(ConsoleColor Color)
Parameters
| Type | Name | Description |
|---|---|---|
Color |
The colour |
Properties
Color
The colour
Declaration
public ConsoleColor Color { get; init; }
Property Value
| Type | Description |
|---|---|
EqualityContract
Set the BackgroundColor
Declaration
protected override Type EqualityContract { get; }
Property Value
| Type | Description |
|---|---|
Overrides
Methods
Deconstruct(out ConsoleColor)
Set the BackgroundColor
Declaration
public void Deconstruct(out ConsoleColor Color)
Parameters
| Type | Name | Description |
|---|---|---|
Color |
Equals(ConsoleFormattingAnnotation?)
Set the BackgroundColor
Declaration
public override sealed bool Equals(ConsoleFormattingAnnotation? other)
Parameters
| Type | Name | Description |
|---|---|---|
other |
Returns
| Type | Description |
|---|---|
Overrides
Equals(BackgroundColor?)
Set the BackgroundColor
Declaration
public virtual bool Equals(ConsoleFormattingAnnotation.BackgroundColor? other)
Parameters
| Type | Name | Description |
|---|---|---|
other |
Returns
| Type | Description |
|---|---|
Equals(object?)
Set the BackgroundColor
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
obj |
Returns
| Type | Description |
|---|---|
Overrides
GetHashCode()
Set the BackgroundColor
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
Overrides
PrintMembers(StringBuilder)
Set the BackgroundColor
Declaration
protected override bool PrintMembers(StringBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
builder |
Returns
| Type | Description |
|---|---|
Overrides
ToString()
Set the BackgroundColor
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
Overrides
<Clone>$()
Set the BackgroundColor
Declaration
public override ConsoleFormattingAnnotation.BackgroundColor <Clone>$()
Returns
| Type | Description |
|---|---|
Overrides
Operators
operator ==(BackgroundColor?, BackgroundColor?)
Set the BackgroundColor
Declaration
public static bool operator ==(ConsoleFormattingAnnotation.BackgroundColor? left, ConsoleFormattingAnnotation.BackgroundColor? right)
Parameters
| Type | Name | Description |
|---|---|---|
left |
||
right |
Returns
| Type | Description |
|---|---|
operator !=(BackgroundColor?, BackgroundColor?)
Set the BackgroundColor
Declaration
public static bool operator !=(ConsoleFormattingAnnotation.BackgroundColor? left, ConsoleFormattingAnnotation.BackgroundColor? right)
Parameters
| Type | Name | Description |
|---|---|---|
left |
||
right |
Returns
| Type | Description |
|---|---|