C# Class Nexus.UI.Controls.AutosizeLabel

A multiline label that resizes with the content.
Currently, the label only resizes its height.
Inheritance: System.Windows.Forms.ScrollableControl
显示文件 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Private Properties

Property Type Description
Label_ContentsResized void
Label_TextChanged void
SetUpScrollHandling void

Public Methods

Method Description
AutosizeLabel ( ) : System

The default constructor.

Private Methods

Method Description
Label_ContentsResized ( object sender, System.Windows.Forms.ContentsResizedEventArgs e ) : void

Handles the RichTextBox.ContentsResized event of the rich text label.

Resizes the label as the content size changes.

Label_TextChanged ( object sender, EventArgs e ) : void

Handles the Control.TextChanged event of the rich text label.

Raises the Control.TextChanged event for the control.

SetUpScrollHandling ( ) : void

Sets up the control to handle srolling.

Method Details

AutosizeLabel() public method

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