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