Class ConsoleFormattingAnnotation
A base class for annotations which the ConsoleDocumentRenderer understands
Inheritance
- object
- ConsoleFormattingAnnotation
- ConsoleFormattingAnnotation.BackgroundColor
- ConsoleFormattingAnnotation.ForegroundColor
Implements
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
Declaration
public abstract record ConsoleFormattingAnnotation : IEquatable<ConsoleFormattingAnnotation>
Constructors
ConsoleFormattingAnnotation(ConsoleFormattingAnnotation)
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
protected ConsoleFormattingAnnotation(ConsoleFormattingAnnotation original)
Parameters
| Type | Name | Description |
|---|---|---|
original |
Properties
EqualityContract
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
protected virtual Type EqualityContract { get; }
Property Value
| Type | Description |
|---|---|
Methods
Equals(ConsoleFormattingAnnotation?)
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
public virtual bool Equals(ConsoleFormattingAnnotation? other)
Parameters
| Type | Name | Description |
|---|---|---|
other |
Returns
| Type | Description |
|---|---|
Equals(object?)
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
obj |
Returns
| Type | Description |
|---|---|
Overrides
GetHashCode()
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
Overrides
PrintMembers(StringBuilder)
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
builder |
Returns
| Type | Description |
|---|---|
ToString()
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
Overrides
<Clone>$()
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
public abstract ConsoleFormattingAnnotation <Clone>$()
Returns
| Type | Description |
|---|---|
Operators
operator ==(ConsoleFormattingAnnotation?, ConsoleFormattingAnnotation?)
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
public static bool operator ==(ConsoleFormattingAnnotation? left, ConsoleFormattingAnnotation? right)
Parameters
| Type | Name | Description |
|---|---|---|
left |
||
right |
Returns
| Type | Description |
|---|---|
operator !=(ConsoleFormattingAnnotation?, ConsoleFormattingAnnotation?)
A base class for annotations which the ConsoleDocumentRenderer understands
Declaration
public static bool operator !=(ConsoleFormattingAnnotation? left, ConsoleFormattingAnnotation? right)
Parameters
| Type | Name | Description |
|---|---|---|
left |
||
right |
Returns
| Type | Description |
|---|---|