Constructor Attribute
Attribute(int)
Initializes a new instance of the Attribute struct with only the value passed to and trying to get the colors if defined.
public Attribute(int value)
Parameters
value
intValue.
Attribute(int, Color, Color)
Initializes a new instance of the Attribute struct.
public Attribute(int value, Color foreground, Color background)
Parameters
Attribute(Color, Color)
Initializes a new instance of the Attribute struct.
public Attribute(Color foreground = Color.Black, Color background = Color.Black)
Parameters
Attribute(Color)
Initializes a new instance of the Attribute struct with the same colors for the foreground and background.
public Attribute(Color color)
Parameters
color
ColorThe color.