Table of Contents

Method GetAttributeForRole

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

GetAttributeForRole(VisualRole)

Gets the Attribute associated with a specified VisualRole, applying inheritance rules for attributes not explicitly set.

public Attribute GetAttributeForRole(VisualRole role)

Parameters

role VisualRole

The semantic VisualRole describing the element being rendered.

Returns

Attribute

The corresponding Attribute from the Scheme, possibly derived if not explicitly set.

GetAttributeForRole(string)

Gets the Attribute associated with a specified VisualRole string.

public Attribute GetAttributeForRole(string roleName)

Parameters

roleName string

The name of the VisualRole describing the element being rendered.

Returns

Attribute

The corresponding Attribute from the Scheme.