C# Class Nexus.UI.Controls.AutosizeLabel.RichTextLabel

A RichTextBox that is styled to behave like a label.
Inheritance: System.Windows.Forms.RichTextBox
Afficher le fichier Open project: NexusMods/NexusModManager-4.5

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
AutosizeLabel_Enter ( object sender, EventArgs e ) : void

Handles the Control.Enter event of the autosize label.

This gives the hidden scrollable panel focus instead of the label, so that the user can't select any text.

RichTextLabel ( ) : System

The default constructor.

Méthodes protégées

Méthode Description
OnContentsResized ( System.Windows.Forms.ContentsResizedEventArgs e ) : void

Resizes the label as the content size changes.

OnLinkClicked ( System.Windows.Forms.LinkClickedEventArgs e ) : void

Raises the RichTextBox.LinkClicked event.

This ask the OS to launch the clicked link.

OnTextChanged ( EventArgs e ) : void

Makes sure all text doesn't look disabled.

SetTextColor ( ) : void

Forces the text color not to look disabled.

Method Details

AutosizeLabel_Enter() public méthode

Handles the Control.Enter event of the autosize label.
This gives the hidden scrollable panel focus instead of the label, so that the user can't select any text.
public AutosizeLabel_Enter ( object sender, EventArgs e ) : void
sender object The object that raised the event.
e System.EventArgs An describing the event arguments.
Résultat void

OnContentsResized() protected méthode

Resizes the label as the content size changes.
protected OnContentsResized ( System.Windows.Forms.ContentsResizedEventArgs e ) : void
e System.Windows.Forms.ContentsResizedEventArgs A describing the event arguments.
Résultat void

OnLinkClicked() protected méthode

Raises the RichTextBox.LinkClicked event.
This ask the OS to launch the clicked link.
protected OnLinkClicked ( System.Windows.Forms.LinkClickedEventArgs e ) : void
e System.Windows.Forms.LinkClickedEventArgs A describing the event arguments.
Résultat void

OnTextChanged() protected méthode

Makes sure all text doesn't look disabled.
protected OnTextChanged ( EventArgs e ) : void
e System.EventArgs A describing the event arguments.
Résultat void

RichTextLabel() public méthode

The default constructor.
public RichTextLabel ( ) : System
Résultat System

SetTextColor() protected méthode

Forces the text color not to look disabled.
protected SetTextColor ( ) : void
Résultat void