C# Class MetroFramework.Forms.MetroForm

Inheritance: System.Windows.Forms.Form, IMetroForm, IDisposable
Show file Open project: AshishKilmist/MetroFramework Class Usage Examples

Private Properties

Property Type Description
AddWindowButton void
CreateShadow void
FocusMe bool
GetTextFormatFlags TextFormatFlags
HitTestNCA WinApi.HitTest
IsAeroThemeEnabled bool
IsDropShadowSupported bool
MeasureText System.Drawing.Rectangle
MoveControl void
OnGetMinMaxInfo void
RemoveCloseButton void
RemoveShadow void
UpdateWindowButtonPosition void
WindowButton_Click void

Public Methods

Method Description
MetroForm ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnActivated ( EventArgs e ) : void
OnClosed ( EventArgs e ) : void
OnClosing ( CancelEventArgs e ) : void
OnEnabledChanged ( EventArgs e ) : void
OnLoad ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnResizeEnd ( EventArgs e ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
AddWindowButton ( WindowButtons button ) : void
CreateShadow ( ) : void
FocusMe ( ) : bool
GetTextFormatFlags ( ) : TextFormatFlags
HitTestNCA ( IntPtr hwnd, IntPtr wparam, IntPtr lparam ) : WinApi.HitTest
IsAeroThemeEnabled ( ) : bool
IsDropShadowSupported ( ) : bool
MeasureText ( Graphics g, Rectangle clientRectangle, Font font, string text, TextFormatFlags flags ) : Rectangle
MoveControl ( ) : void
OnGetMinMaxInfo ( IntPtr hwnd, IntPtr lParam ) : void
RemoveCloseButton ( ) : void
RemoveShadow ( ) : void
UpdateWindowButtonPosition ( ) : void
WindowButton_Click ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

MetroForm() public method

public MetroForm ( ) : System
return System

OnActivated() protected method

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

OnClosed() protected method

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

OnClosing() protected method

protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OnEnabledChanged() protected method

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

OnLoad() protected method

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

OnMouseDown() protected method

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

OnPaint() protected method

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

OnResizeEnd() protected method

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

WndProc() protected method

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