Table of Contents

Method OnGettingAttributeForRole

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

OnGettingAttributeForRole(in VisualRole, ref Attribute)

Called when the Attribute for a GetAttributeForRole(VisualRole) is being retrieved. Implementations can return true to stop further processing and optionally set the Attribute in the event args to a different value.

protected override bool OnGettingAttributeForRole(in VisualRole role, ref Attribute currentAttribute)

Parameters

role VisualRole
currentAttribute Attribute

The current value of the Attribute for the VisualRole. This by-ref value can be changed

Returns

bool