C# Class Smrf.AppLib.ColorGradientPanel

Panel control that displays a color gradient across the width of the control.
When the panel is drawn, it has a gradient from MinimumColor on the left side to MaximumColor on the right side.
Inheritance: System.Windows.Forms.Panel
Afficher le fichier Open project: 2014-sed-team3/term-project

Protected Properties

Свойство Type Description
m_oMaximumColor Color
m_oMinimumColor Color

Méthodes publiques

Méthode Description
ColorGradientPanel ( ) : System

Initializes a new instance of the ColorGradientPanel class.

Méthodes protégées

Méthode Description
FillRectangleWithLinearGradient ( Graphics oGraphics, Rectangle oRectangle, Color oLeftColor, Color oRightColor ) : void
OnPaint ( PaintEventArgs e ) : void

Private Methods

Méthode Description
AssertValid ( ) : void

Method Details

ColorGradientPanel() public méthode

Initializes a new instance of the ColorGradientPanel class.
public ColorGradientPanel ( ) : System
Résultat System

FillRectangleWithLinearGradient() protected méthode

protected FillRectangleWithLinearGradient ( Graphics oGraphics, Rectangle oRectangle, Color oLeftColor, Color oRightColor ) : void
oGraphics System.Drawing.Graphics
oRectangle System.Drawing.Rectangle
oLeftColor Color
oRightColor Color
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

Property Details

m_oMaximumColor protected_oe property

protected Color m_oMaximumColor
Résultat Color

m_oMinimumColor protected_oe property

protected Color m_oMinimumColor
Résultat Color