Struct Style
Represents the style of the text (attributes and colors).
Inherited Members
Namespace: Sharpie
Assembly: sharpie.dll
Syntax
[PublicAPI]
public readonly struct Style
Properties
Attributes
The attributes of the text.
Declaration
public VideoAttribute Attributes { get; init; }
Property Value
| Type | Description |
|---|---|
| VideoAttribute |
ColorMixture
The color mixture.
Declaration
public ColorMixture ColorMixture { get; init; }
Property Value
| Type | Description |
|---|---|
| ColorMixture |
Default
The default terminal style.
Declaration
public static Style Default { get; }
Property Value
| Type | Description |
|---|---|
| Style |
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Overrides
Operators
operator ==(Style, Style)
The equality operator.
Declaration
public static bool operator ==(Style left, Style right)
Parameters
| Type | Name | Description |
|---|---|---|
| Style | left | LHS argument. |
| Style | right | RHS argument. |
Returns
| Type | Description |
|---|---|
| bool | The result of the check. |
operator !=(Style, Style)
The inequality operator.
Declaration
public static bool operator !=(Style left, Style right)
Parameters
| Type | Name | Description |
|---|---|---|
| Style | left | LHS argument. |
| Style | right | RHS argument. |
Returns
| Type | Description |
|---|---|
| bool | The result of the check. |