C# Class DfBAdminToolkit.Common.Component.ButtonEx

Inheritance: System.Windows.Forms.Button
显示文件 Open project: dropbox/DropboxBusinessAdminTool

Private Properties

Property Type Description
InitializeComponent void

Public Methods

Method Description
ButtonEx ( ) : System
GetRoundedRect ( RectangleF r, float radius ) : GraphicsPath

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClick ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs mevent ) : void
OnMouseUp ( MouseEventArgs mevent ) : void
OnPaint ( PaintEventArgs e ) : void
PaintCustomBackground ( PaintEventArgs e, Graphics g, Color tTopColorBegin, Color tTopColorEnd, Color tBottomColorBegin, Color tBottomColorEnd ) : void
PaintTransparentBackground ( Graphics g, Rectangle clipRect ) : void
TextAndImage ( Rectangle Rec, Graphics g, Color textColor ) : void

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

ButtonEx() public method

public ButtonEx ( ) : System
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetRoundedRect() public static method

public static GetRoundedRect ( RectangleF r, float radius ) : GraphicsPath
r System.Drawing.RectangleF
radius float
return System.Drawing.Drawing2D.GraphicsPath

OnClick() protected method

protected OnClick ( 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

OnMouseMove() protected method

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

OnMouseUp() protected method

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

OnPaint() protected method

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

PaintCustomBackground() protected method

protected PaintCustomBackground ( PaintEventArgs e, Graphics g, Color tTopColorBegin, Color tTopColorEnd, Color tBottomColorBegin, Color tBottomColorEnd ) : void
e PaintEventArgs
g System.Drawing.Graphics
tTopColorBegin Color
tTopColorEnd Color
tBottomColorBegin Color
tBottomColorEnd Color
return void

PaintTransparentBackground() protected method

protected PaintTransparentBackground ( Graphics g, Rectangle clipRect ) : void
g System.Drawing.Graphics
clipRect System.Drawing.Rectangle
return void

TextAndImage() protected method

protected TextAndImage ( Rectangle Rec, Graphics g, Color textColor ) : void
Rec System.Drawing.Rectangle
g System.Drawing.Graphics
textColor Color
return void