C# Class Nexus.UI.Controls.DetailsButton

A button with an arrow that alternates between pointing up and down when clicked.
Inheritance: System.Windows.Forms.Button
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Private Properties

Свойство Type Description
PadImage System.Drawing.Bitmap
SetImages void

Méthodes publiques

Méthode Description
DetailsButton ( ) : System

The default constructor.

Méthodes protégées

Méthode Description
OnClick ( EventArgs e ) : void

Raises the Control.Click event.

This alternates the image between the up arrow and the down arrow.

OnMouseEnter ( EventArgs e ) : void

Raises the Control.MouseEnter event.

This switches the image to the hot version of the current image.

OnMouseLeave ( EventArgs e ) : void

Raises the Control.MouseLeave event.

This switches the image to the normal version of the current image.

Private Methods

Méthode Description
PadImage ( Image p_imgImage ) : Bitmap

Adds the TextImageSpacing to the image.

SetImages ( ) : void

This fills the image list with the padded images.

Method Details

DetailsButton() public méthode

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

OnClick() protected méthode

Raises the Control.Click event.
This alternates the image between the up arrow and the down arrow.
protected OnClick ( EventArgs e ) : void
e System.EventArgs An describing the event arguments.
Résultat void

OnMouseEnter() protected méthode

Raises the Control.MouseEnter event.
This switches the image to the hot version of the current image.
protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs An describing the event arguments.
Résultat void

OnMouseLeave() protected méthode

Raises the Control.MouseLeave event.
This switches the image to the normal version of the current image.
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs An describing the event arguments.
Résultat void