C# Класс Nexus.Client.ModManagement.Scripting.XmlScript.UI.HeaderPanel

A panel that displays an image and title.
Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект

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