Table of Contents

Method OnHighlight

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

OnHighlight(CancelEventArgs<HighlightStyle>)

Called when the view is to be highlighted. The HighlightStyle passed in the event indicates the highlight style that will be applied. The view can modify the highlight style by setting the NewValue property.

protected override bool OnHighlight(CancelEventArgs<HighlightStyle> args)

Parameters

args CancelEventArgs<HighlightStyle>

Set the NewValue property to true, to cancel, indicating custom highlighting.

Returns

bool

true, to cancel, indicating custom highlighting.