C# Class SIL.FieldWorks.Common.Controls.SimpleExplorerBar

Encapsulates a simple explorer bar-like control.
Inheritance: FwPanel
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
Add ( string text, Control control ) : ExplorerBarItem

Adds an ExplorerBarItem with the specified text and hosting the specified control.

Add ( ExplorerBarItem item ) : void

Adds the specified item to the item collection.

HandleItemExpandingOrCollapsing ( object sender, EventArgs e ) : void

Handles an item expanding or collapsing.

Remove ( ExplorerBarItem item ) : void

Removes the specified item from the collection of items.

Remove ( int index ) : void

Removes from the item collection the item at the specified index.

SimpleExplorerBar ( ) : System

Constructs a SimpleExplorerBar object.

item_SizeChanged ( object sender, EventArgs e ) : void

Handles the SizeChanged event for the ExplorerBarItems.

Private Methods

Method Description
ManageVScrollBar ( ) : void

Manages the visibility and enabled state of the vertical scroll bar.

Method Details

Add() public method

Adds an ExplorerBarItem with the specified text and hosting the specified control.
public Add ( string text, Control control ) : ExplorerBarItem
text string
control System.Windows.Forms.Control
return ExplorerBarItem

Add() public method

Adds the specified item to the item collection.
public Add ( ExplorerBarItem item ) : void
item ExplorerBarItem
return void

HandleItemExpandingOrCollapsing() public method

Handles an item expanding or collapsing.
public HandleItemExpandingOrCollapsing ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Remove() public method

Removes the specified item from the collection of items.
public Remove ( ExplorerBarItem item ) : void
item ExplorerBarItem
return void

Remove() public method

Removes from the item collection the item at the specified index.
public Remove ( int index ) : void
index int
return void

SimpleExplorerBar() public method

Constructs a SimpleExplorerBar object.
public SimpleExplorerBar ( ) : System
return System

item_SizeChanged() public method

Handles the SizeChanged event for the ExplorerBarItems.
public item_SizeChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void