C# 클래스 Nexus.Client.ModManagement.Scripting.XmlScript.UI.HeaderPanel

A panel that displays an image and title.
상속: System.Windows.Forms.UserControl
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

Private Properties

프로퍼티 타입 설명
Fade void
loadImage void
updateLayout void

공개 메소드들

메소드 설명
HeaderPanel ( ) : System

The default constructor.

보호된 메소드들

메소드 설명
OnFontChanged ( EventArgs e ) : void

Raises the Control.FontChanged event.

This method updates the font of the label.

OnResize ( EventArgs e ) : void

Raises the Control.Reszie event.

This forces the label to refresh if it hasn't already done so.

resize ( Image p_imgSource, Size p_szeSize ) : Bitmap

Resizes the source image to fit into the header.

The piture box automatically sizes the image to fit; however, resizing ourselves gives us a significant performance advantage when creating the fade effect.

비공개 메소드들

메소드 설명
Fade ( ) : void

Generates the fade effect.

loadImage ( ) : void

Loads the image into the header, and adjust the picture box to display the image correctly.

updateLayout ( ) : void

Positions the controls per the properties.

메소드 상세

HeaderPanel() 공개 메소드

The default constructor.
public HeaderPanel ( ) : System
리턴 System

OnFontChanged() 보호된 메소드

Raises the Control.FontChanged event.
This method updates the font of the label.
protected OnFontChanged ( EventArgs e ) : void
e System.EventArgs An describing the event arguments.
리턴 void

OnResize() 보호된 메소드

Raises the Control.Reszie event.
This forces the label to refresh if it hasn't already done so.
protected OnResize ( EventArgs e ) : void
e System.EventArgs An describing the event arguments.
리턴 void

resize() 보호된 메소드

Resizes the source image to fit into the header.
The piture box automatically sizes the image to fit; however, resizing ourselves gives us a significant performance advantage when creating the fade effect.
protected resize ( Image p_imgSource, Size p_szeSize ) : Bitmap
p_imgSource Image The image to resize.
p_szeSize System.Drawing.Size The size to which to resize the image.
리턴 System.Drawing.Bitmap