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
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Private Properties

Property Type Description
PadImage System.Drawing.Bitmap
SetImages void

Public Methods

Method Description
DetailsButton ( ) : System

The default constructor.

Protected Methods

Method 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

Method 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 method

The default constructor.
public DetailsButton ( ) : System
return System

OnClick() protected method

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.
return void

OnMouseEnter() protected method

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.
return void

OnMouseLeave() protected method

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.
return void