C# Class GrayIris.Utilities.UI.Controls.Design.YaTabControlDesigner

Provides a custom ControlDesigner for the YaTabControl.
Inheritance: System.Windows.Forms.Design.ControlDesigner
Show file Open project: realistschuckle/yet-another-tab-control

Public Methods

Method Description
DoDefaultAction ( ) : void

Overridden. Inherited from IDesigner.DoDefaultAction().

Initialize ( IComponent component ) : void

Overridden. Inherited from ControlDesigner.

This designer exists exclusively for YaTabControls. If component does not inherit from YaTabControl, then this method throws an ArgumentException.

YaTabControlDesigner ( ) : System

Creates an instance of the YaTabControlDesigner class.

Protected Methods

Method Description
WndProc ( Message &m ) : void

Overridden. Inherited from ControlDesigner.

Checks for WM_LBUTTONDOWN events and uses that to select the appropriate tab in the YaTabControl.

Private Methods

Method Description
AddTab ( object sender, EventArgs ea ) : void

Event handler for the "Add Tab" verb.

ComponentRemoved ( object sender, ComponentEventArgs cea ) : void

Watches for the removal of YaTabDrawerBases and, should one get removed that is assigned to the YaTabControl, then set the YaTabControl.TabDrawer property to null.

GetNewTabName ( ) : string

Gets a new tab name for the a tab.

RemoveTab ( object sender, EventArgs ea ) : void

Event handler for the "Remove Tab" verb.

Method Details

DoDefaultAction() public method

Overridden. Inherited from IDesigner.DoDefaultAction().
public DoDefaultAction ( ) : void
return void

Initialize() public method

Overridden. Inherited from ControlDesigner.
This designer exists exclusively for YaTabControls. If component does not inherit from YaTabControl, then this method throws an ArgumentException.
/// Thrown if this designer gets used with a class that does not /// inherit from . ///
public Initialize ( IComponent component ) : void
component IComponent /// The to which this designer gets attached. ///
return void

WndProc() protected method

Overridden. Inherited from ControlDesigner.
Checks for WM_LBUTTONDOWN events and uses that to select the appropriate tab in the YaTabControl.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message /// The message. ///
return void

YaTabControlDesigner() public method

Creates an instance of the YaTabControlDesigner class.
public YaTabControlDesigner ( ) : System
return System