C# Class ZForge.Controls.ExplorerBar.TaskPane

Inheritance: System.Windows.Forms.ScrollableControl, ISupportInitialize
Datei anzeigen Open project: zhuangyy/Motion Class Usage Examples

Private Properties

Property Type Description
DropExpando void
FireCustomSettingsChanged void
MatchControlCollToExpandoColl void
OnParentChanged void
OnParentVisibleChanged void
UpdateDropPoint void
UpdateExpandos void
expando_StateChanged void

Public Methods

Method Description
BeginInit ( ) : void

Signals the TaskPane that initialization is starting

BeginUpdate ( ) : void

Prevents the TaskPane from drawing until the EndUpdate method is called

CollapseAll ( ) : void

Collaspes all the Expandos contained in the TaskPane

CollapseAllButOne ( Expando expando ) : void

Collaspes all the Expandos contained in the TaskPane, except for the specified Expando which is expanded

DoLayout ( ) : void

Forces the TaskPane to apply layout logic to child Expandos, and adjusts the Size and Location of the Expandos if necessary

DoLayout ( bool performRealLayout ) : void

Forces the TaskPane to apply layout logic to child Expandos, and adjusts the Size and Location of the Expandos if necessary

EndInit ( ) : void

Signals the TaskPane that initialization is complete

EndUpdate ( ) : void

Resumes drawing of the TaskPane after drawing is suspended by the BeginUpdate method

ExpandAll ( ) : void

Expands all the Expandos contained in the TaskPane

ResetCustomSettings ( ) : void

Resets the custom settings to their default values

TaskPane ( ) : System

Initializes a new instance of the TaskPane class with default settings

UseClassicTheme ( ) : void

Forces the TaskPane and all it's Expandos to use a theme equivalent to Windows XPs classic theme

UseCustomTheme ( string stylePath ) : void

Forces the TaskPane and all it's Expandos to use the specified theme

UseDefaultTheme ( ) : void

Forces the TaskPane and all it's Expandos to use the current system theme

Protected Methods

Method Description
CalcExpandoLocation ( Expando target ) : Point

Calculates where the specified Expando should be located

Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the TaskPane and optionally releases the managed resources

OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ControlAdded event

OnControlRemoved ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ControlRemoved event

OnCustomSettingsChanged ( EventArgs e ) : void

Raises the CustomSettingsChanged event

OnExpandoAdded ( ExpandoEventArgs e ) : void

Raises the ExpandoAdded event

OnExpandoRemoved ( ExpandoEventArgs e ) : void

Raises the ExpandoRemoved event

OnExpandoStateChanged ( ExpandoEventArgs e ) : void

Occurs when the value of an Expandos Collapsed property changes

OnPaint ( PaintEventArgs e ) : void

OnPaintBackground ( PaintEventArgs e ) : void

Raises the PaintBackground event

OnSizeChanged ( EventArgs e ) : void

OnSystemColorsChanged ( EventArgs e ) : void

Raises the SystemColorsChanged event

Private Methods

Method Description
DropExpando ( Expando expando ) : void

"Drops" the specified Expando and moves it to the current drop point

FireCustomSettingsChanged ( EventArgs e ) : void

Raises the CustomSettingsChanged event

MatchControlCollToExpandoColl ( ) : void

Make sure the the expandos index in the ControlCollection are the same as in the ExpandoCollection (indexes in the ExpandoCollection may have changed due to the user moving them around in the editor or calling ExpandoCollection.Move())

OnParentChanged ( object sender, EventArgs e ) : void

Event handler for the ParentChanged event

OnParentVisibleChanged ( object sender, EventArgs e ) : void

Event handler for the ParentVisibleChanged event

UpdateDropPoint ( Point point ) : void

Calculates the Point that the currently dragged Expando will dropped at based on the specified mouse position

UpdateExpandos ( ) : void

Updates the layout of the Expandos while in design mode, and adds/removes Expandos from the ControlCollection as necessary

expando_StateChanged ( object sender, ExpandoEventArgs e ) : void

Event handler for the Expando StateChanged event

Method Details

BeginInit() public method

Signals the TaskPane that initialization is starting
public BeginInit ( ) : void
return void

BeginUpdate() public method

Prevents the TaskPane from drawing until the EndUpdate method is called
public BeginUpdate ( ) : void
return void

CalcExpandoLocation() protected method

Calculates where the specified Expando should be located
protected CalcExpandoLocation ( Expando target ) : Point
target Expando
return Point

CollapseAll() public method

Collaspes all the Expandos contained in the TaskPane
public CollapseAll ( ) : void
return void

CollapseAllButOne() public method

Collaspes all the Expandos contained in the TaskPane, except for the specified Expando which is expanded
public CollapseAllButOne ( Expando expando ) : void
expando Expando The Expando that is to be expanded
return void

Dispose() protected method

Releases the unmanaged resources used by the TaskPane and optionally releases the managed resources
protected Dispose ( bool disposing ) : void
disposing bool True to release both managed and unmanaged /// resources; false to release only unmanaged resources
return void

DoLayout() public method

Forces the TaskPane to apply layout logic to child Expandos, and adjusts the Size and Location of the Expandos if necessary
public DoLayout ( ) : void
return void

DoLayout() public method

Forces the TaskPane to apply layout logic to child Expandos, and adjusts the Size and Location of the Expandos if necessary
public DoLayout ( bool performRealLayout ) : void
performRealLayout bool true to execute pending layout /// requests; otherwise, false
return void

EndInit() public method

Signals the TaskPane that initialization is complete
public EndInit ( ) : void
return void

EndUpdate() public method

Resumes drawing of the TaskPane after drawing is suspended by the BeginUpdate method
public EndUpdate ( ) : void
return void

ExpandAll() public method

Expands all the Expandos contained in the TaskPane
public ExpandAll ( ) : void
return void

OnControlAdded() protected method

Raises the ControlAdded event
protected OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
return void

OnControlRemoved() protected method

Raises the ControlRemoved event
protected OnControlRemoved ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
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

OnExpandoAdded() protected method

Raises the ExpandoAdded event
protected OnExpandoAdded ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoEventArgs that contains the event data
return void

OnExpandoRemoved() protected method

Raises the ExpandoRemoved event
protected OnExpandoRemoved ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoEventArgs that contains the event data
return void

OnExpandoStateChanged() protected method

Occurs when the value of an Expandos Collapsed property changes
protected OnExpandoStateChanged ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoEventArgs that contains the event data
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
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

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

OnSystemColorsChanged() protected method

Raises the SystemColorsChanged event
protected OnSystemColorsChanged ( 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

TaskPane() public method

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

UseClassicTheme() public method

Forces the TaskPane and all it's Expandos to use a theme equivalent to Windows XPs classic theme
public UseClassicTheme ( ) : void
return void

UseCustomTheme() public method

Forces the TaskPane and all it's Expandos to use the specified theme
public UseCustomTheme ( string stylePath ) : void
stylePath string The path to the custom /// shellstyle.dll to use
return void

UseDefaultTheme() public method

Forces the TaskPane and all it's Expandos to use the current system theme
public UseDefaultTheme ( ) : void
return void