Table of Contents

Constructor Attribute

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

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 int

Value.

Attribute(int, Color, Color)

Initializes a new instance of the Attribute struct.

public Attribute(int value, Color foreground, Color background)

Parameters

value int

Value.

foreground Color

Foreground

background Color

Background

Attribute(Color, Color)

Initializes a new instance of the Attribute struct.

public Attribute(Color foreground = Color.Black, Color background = Color.Black)

Parameters

foreground Color

Foreground

background Color

Background

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 Color

The color.