Struct Attribute | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Attributes represent how text is styled when displayed in the terminal.
[JsonConverter(typeof(AttributeJsonConverter))]
public readonly record struct Attribute : IEqualityOperators<Attribute, Attribute, bool>, IEquatable<Attribute>
Implements
Inherited Members
Constructors
Initializes a new instance with default values.
Initializes a new instance from an existing instance.
Initializes a new instance of the Attribute struct with the same colors for the foreground and background.
Initializes a new instance of the Attribute struct.
Attribute(in Color, in ColorName16)
Initializes a new instance of the Attribute struct.
Attribute(in ColorName16, in Color)
Initializes a new instance of the Attribute struct.
Attribute(in ColorName16, in ColorName16)
Initializes a new instance of the Attribute struct.
Properties
The background color.
Default empty attribute.
The foreground color.
Methods
Returns the hash code for this instance.
Returns the fully qualified type name of this instance.