C# Class NanoByte.Common.Controls.DropDownButton

A Button with an additional drop-down menu.
Inheritance: System.Windows.Forms.Button
Afficher le fichier Open project: nano-byte/common

Private Properties

Свойство Type Description
AlignInRectangle System.Drawing.Rectangle
CalculateButtonAutoSize System.Drawing.Size
CalculateButtonTextAndImageLayout void
DropDownMenuStrip_Closing void
DropDownMenuStrip_Opening void
DropDownMenu_Popup void
GetHorizontalAlignment HorizontalAlignment
GetVerticalAlignment VerticalAlignment
LayoutTextAboveOrBelowImage void
LayoutTextBeforeOrAfterImage void
OverlayObjectRect System.Drawing.Rectangle
PaintArrow void
PaintTextAndImage void
SetButtonDrawState void
WndProc void

Méthodes publiques

Méthode Description
DropDownButton ( ) : System
GetPreferredSize ( Size proposedSize ) : Size
ShowDropDownMenu ( ) : void

Méthodes protégées

Méthode Description
IsInputKey ( Keys keyData ) : bool
OnEnabledChanged ( EventArgs e ) : void
OnGotFocus ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs kevent ) : void
OnKeyUp ( KeyEventArgs kevent ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseUp ( MouseEventArgs mevent ) : void
OnPaint ( PaintEventArgs pevent ) : void

Private Methods

Méthode Description
AlignInRectangle ( Rectangle outer, Size inner, System.Drawing.ContentAlignment align ) : Rectangle
CalculateButtonAutoSize ( ) : Size
CalculateButtonTextAndImageLayout ( Rectangle &contentRect, Rectangle &textRectangle, Rectangle &imageRectangle ) : void
DropDownMenuStrip_Closing ( object sender, System.Windows.Forms.ToolStripDropDownClosingEventArgs e ) : void
DropDownMenuStrip_Opening ( object sender, CancelEventArgs e ) : void
DropDownMenu_Popup ( object sender, EventArgs e ) : void
GetHorizontalAlignment ( System.Drawing.ContentAlignment align ) : HorizontalAlignment
GetVerticalAlignment ( System.Drawing.ContentAlignment align ) : VerticalAlignment
LayoutTextAboveOrBelowImage ( Rectangle totalArea, bool textFirst, Size textSize, Size imageSize, Rectangle &textRect, Rectangle &imageRect ) : void
LayoutTextBeforeOrAfterImage ( Rectangle totalArea, bool textFirst, Size textSize, Size imageSize, Rectangle &textRect, Rectangle &imageRect ) : void
OverlayObjectRect ( Rectangle &container, Size &sizeOfObject, System.Drawing.ContentAlignment alignment ) : Rectangle
PaintArrow ( Graphics g, Rectangle dropDownRect ) : void
PaintTextAndImage ( Graphics g, Rectangle bounds ) : void
SetButtonDrawState ( ) : void
WndProc ( Message &m ) : void

Method Details

DropDownButton() public méthode

public DropDownButton ( ) : System
Résultat System

GetPreferredSize() public méthode

public GetPreferredSize ( Size proposedSize ) : Size
proposedSize System.Drawing.Size
Résultat System.Drawing.Size

IsInputKey() protected méthode

protected IsInputKey ( Keys keyData ) : bool
keyData Keys
Résultat bool

OnEnabledChanged() protected méthode

protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnGotFocus() protected méthode

protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEventArgs kevent ) : void
kevent System.Windows.Forms.KeyEventArgs
Résultat void

OnKeyUp() protected méthode

protected OnKeyUp ( KeyEventArgs kevent ) : void
kevent System.Windows.Forms.KeyEventArgs
Résultat void

OnLostFocus() protected méthode

protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseEnter() protected méthode

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseLeave() protected méthode

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseUp() protected méthode

protected OnMouseUp ( MouseEventArgs mevent ) : void
mevent MouseEventArgs
Résultat void

OnPaint() protected méthode

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

ShowDropDownMenu() public méthode

public ShowDropDownMenu ( ) : void
Résultat void