C# Class BF2Statistics.SplitButton

Inheritance: System.Windows.Forms.Button
Mostrar archivo Open project: BF2Statistics/ControlCenter

Private Properties

Property Type Description
AlignInRectangle System.Drawing.Rectangle
CalculateButtonAutoSize System.Drawing.Size
CalculateButtonTextAndImageLayout void
GetHorizontalAlignment HorizontalAlignment
GetVerticalAlignment VerticalAlignment
LayoutTextAboveOrBelowImage void
LayoutTextBeforeOrAfterImage void
OverlayObjectRect System.Drawing.Rectangle
PaintArrow void
PaintTextandImage void
SetButtonDrawState void
ShowContextMenuStrip void
SplitMenuStrip_Closing void
SplitMenuStrip_Opening void
SplitMenu_Popup void

Public Methods

Method Description
GetPreferredSize ( Size proposedSize ) : Size
SplitButton ( ) : System

Protected Methods

Method 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
WndProc ( Message &m ) : void

Private Methods

Method Description
AlignInRectangle ( Rectangle outer, Size inner, System align ) : Rectangle
CalculateButtonAutoSize ( ) : Size
CalculateButtonTextAndImageLayout ( Rectangle &content_rect, Rectangle &textRectangle, Rectangle &imageRectangle ) : void
GetHorizontalAlignment ( System align ) : HorizontalAlignment
GetVerticalAlignment ( System 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 alignment ) : Rectangle
PaintArrow ( Graphics g, Rectangle dropDownRect ) : void
PaintTextandImage ( Graphics g, Rectangle bounds ) : void
SetButtonDrawState ( ) : void
ShowContextMenuStrip ( ) : void
SplitMenuStrip_Closing ( object sender, System.Windows.Forms.ToolStripDropDownClosingEventArgs e ) : void
SplitMenuStrip_Opening ( object sender, CancelEventArgs e ) : void
SplitMenu_Popup ( object sender, EventArgs e ) : void

Method Details

GetPreferredSize() public method

public GetPreferredSize ( Size proposedSize ) : Size
proposedSize System.Drawing.Size
return System.Drawing.Size

IsInputKey() protected method

protected IsInputKey ( Keys keyData ) : bool
keyData Keys
return bool

OnEnabledChanged() protected method

protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnGotFocus() protected method

protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs kevent ) : void
kevent System.Windows.Forms.KeyEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( KeyEventArgs kevent ) : void
kevent System.Windows.Forms.KeyEventArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseEnter() protected method

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs mevent ) : void
mevent MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs pevent ) : void
pevent PaintEventArgs
return void

SplitButton() public method

public SplitButton ( ) : System
return System

WndProc() protected method

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void