C# Class ZForge.Controls.ExplorerBar.TaskItem

Inheritance: System.Windows.Forms.Button
Exibir arquivo Open project: zhuangyy/Motion Class Usage Examples

Private Properties

Property Type Description
FireCustomSettingsChanged void
InitDrawTextFlags void
InitStringFormat void

Public Methods

Method Description
ResetCustomSettings ( ) : void

Resets the custom settings to their default values

TaskItem ( ) : System

Initializes a new instance of the TaskItem class with default settings

Protected Methods

Method Description
CalcGdiPlusPreferredHeight ( Graphics g ) : int

Calculates the preferred height of the TaskItem using GDI+

CalcGdiPlusPreferredWidth ( Graphics g ) : int

Calculates the preferred width of the TaskItem using GDI+

CalcGdiPreferredHeight ( Graphics g ) : int

Calculates the preferred height of the TaskItem using GDI

CalcGdiPreferredWidth ( Graphics g ) : int

Calculates the preferred width of the TaskItem using GDI

DrawGdiText ( Graphics g ) : void

DrawText ( Graphics g ) : void

OnCustomSettingsChanged ( EventArgs e ) : void

Raises the CustomSettingsChanged event

OnGotFocus ( EventArgs e ) : void

Raises the GotFocus event

OnMouseEnter ( EventArgs e ) : void

Raises the MouseEnter event

OnMouseLeave ( EventArgs e ) : void

Raises the MouseLeave event

OnPaint ( PaintEventArgs e ) : void

Raises the Paint event

OnPaintBackground ( PaintEventArgs e ) : void

Raises the PaintBackground event

OnSizeChanged ( EventArgs e ) : void

Raises the SizeChanged event

OnVisibleChanged ( EventArgs e ) : void

Raises the VisibleChanged event

Private Methods

Method Description
FireCustomSettingsChanged ( EventArgs e ) : void

Raises the CustomSettingsChanged event

InitDrawTextFlags ( ) : void

Initializes the TaskItem's DrawTextFlags object

InitStringFormat ( ) : void

Initializes the TaskItem's StringFormat object

Method Details

CalcGdiPlusPreferredHeight() protected method

Calculates the preferred height of the TaskItem using GDI+
protected CalcGdiPlusPreferredHeight ( Graphics g ) : int
g System.Drawing.Graphics The Graphics used to measure the TaskItem
return int

CalcGdiPlusPreferredWidth() protected method

Calculates the preferred width of the TaskItem using GDI+
protected CalcGdiPlusPreferredWidth ( Graphics g ) : int
g System.Drawing.Graphics The Graphics used to measure the TaskItem
return int

CalcGdiPreferredHeight() protected method

Calculates the preferred height of the TaskItem using GDI
protected CalcGdiPreferredHeight ( Graphics g ) : int
g System.Drawing.Graphics The Graphics used to measure the TaskItem
return int

CalcGdiPreferredWidth() protected method

Calculates the preferred width of the TaskItem using GDI
protected CalcGdiPreferredWidth ( Graphics g ) : int
g System.Drawing.Graphics The Graphics used to measure the TaskItem
return int

DrawGdiText() protected method

protected DrawGdiText ( Graphics g ) : void
g System.Drawing.Graphics
return void

DrawText() protected method

protected DrawText ( Graphics g ) : void
g System.Drawing.Graphics
return void

OnCustomSettingsChanged() protected method

Raises the CustomSettingsChanged event
protected OnCustomSettingsChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnGotFocus() protected method

Raises the GotFocus event
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnMouseEnter() protected method

Raises the MouseEnter event
protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnMouseLeave() protected method

Raises the MouseLeave event
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnPaint() protected method

Raises the Paint event
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data
return void

OnPaintBackground() protected method

Raises the PaintBackground event
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data
return void

OnSizeChanged() protected method

Raises the SizeChanged event
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnVisibleChanged() protected method

Raises the VisibleChanged event
protected OnVisibleChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

ResetCustomSettings() public method

Resets the custom settings to their default values
public ResetCustomSettings ( ) : void
return void

TaskItem() public method

Initializes a new instance of the TaskItem class with default settings
public TaskItem ( ) : System
return System