C# Class Nexus.Client.ModManagement.Scripting.XmlScript.UI.HeaderPanel.TransparentLabel

A label that has a transparent backgroun.
Inheritance: System.Windows.Forms.UserControl
Show file Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description
updateLayout void

Public Methods

Method Description
TransparentLabel ( ) : System

The default constructor.

Protected Methods

Method Description
OnPaint ( PaintEventArgs e ) : void

Raises the Control.OnPaint event.

This paints what is behind the label, and then oerlays that with the label's text.

OnPaintBackground ( PaintEventArgs e ) : void

Raises the Control.OnPaintBackground event.

We don't want a backgroun, so this method does nothing.

Private Methods

Method Description
updateLayout ( ) : void

Adjusts the size of the label whenever properties affecting size change.

Method Details

OnPaint() protected method

Raises the Control.OnPaint event.
This paints what is behind the label, and then oerlays that with the label's text.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A describing the event arguments.
return void

OnPaintBackground() protected method

Raises the Control.OnPaintBackground event.
We don't want a backgroun, so this method does nothing.
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs A describing the event arguments.
return void

TransparentLabel() public method

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