C# Класс Nexus.UI.Controls.AutosizeLabel.RichTextLabel

A RichTextBox that is styled to behave like a label.
Наследование: System.Windows.Forms.RichTextBox
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

AutosizeLabel_Enter() публичный Метод

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.
Результат void

OnContentsResized() защищенный Метод

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.
Результат void

OnLinkClicked() защищенный Метод

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.
Результат void

OnTextChanged() защищенный Метод

Makes sure all text doesn't look disabled.
protected OnTextChanged ( EventArgs e ) : void
e System.EventArgs A describing the event arguments.
Результат void

RichTextLabel() публичный Метод

The default constructor.
public RichTextLabel ( ) : System
Результат System

SetTextColor() защищенный Метод

Forces the text color not to look disabled.
protected SetTextColor ( ) : void
Результат void