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