C# 클래스 Nexus.UI.Controls.AutosizeLabel.RichTextLabel

A RichTextBox that is styled to behave like a label.
상속: System.Windows.Forms.RichTextBox
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

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