C# Class Nexus.UI.Controls.HtmlLabel

A label that allows use of HTML to format the text.
Inheritance: System.Windows.Forms.WebBrowser
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
HtmlLabel ( ) : System

The default constructor.

Protected Methods

Method Description
OnNavigating ( System.Windows.Forms.WebBrowserNavigatingEventArgs e ) : void

Raises the WebBrowser.Navigating event.

This cancels all navigation events that aren't caused by setting the Text property. If the navigation is caused by something other than setting the Text property, the new location is open in the default browser.

OnSizeChanged ( EventArgs e ) : void

Raises the Control.SizeChanged event.

This enables or disabled the scroll bars as required.

SetScrollbarVisibility ( ) : void

This enables or disabled the scroll bars as required.

Method Details

HtmlLabel() public method

The default constructor.
public HtmlLabel ( ) : System
return System

OnNavigating() protected method

Raises the WebBrowser.Navigating event.
This cancels all navigation events that aren't caused by setting the Text property. If the navigation is caused by something other than setting the Text property, the new location is open in the default browser.
protected OnNavigating ( System.Windows.Forms.WebBrowserNavigatingEventArgs e ) : void
e System.Windows.Forms.WebBrowserNavigatingEventArgs A describing the event arguments.
return void

OnSizeChanged() protected method

Raises the Control.SizeChanged event.
This enables or disabled the scroll bars as required.
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs A describing the event arguments.
return void

SetScrollbarVisibility() protected method

This enables or disabled the scroll bars as required.
protected SetScrollbarVisibility ( ) : void
return void