C# Class XCore.ToolStripManager

Controls the position of a single MenuStrip and 1 or more ToolStrips
Inheritance: System.Windows.Forms.ToolStripContainer
Mostra file Open project: sillsdev/FieldWorks

Protected Properties

Property Type Description
m_MenuStrip System.Windows.Forms.MenuStrip
m_needLayout bool
m_toolStripList List

Public Methods

Method Description
AddMenuStrip ( MenuStrip menuStrip ) : void

Adds the one and only MenuStrip Throws ApplicationException if this is called multiple times.

AddToolStrip ( ToolStrip toolStrip ) : void

Add ToolStrips - This can be callled Multiple times

InvalidateLayout ( ) : void

Mark that the layout needs to be reflowed

LayoutToolStrips ( ) : void

layout toolstrips by size Assumes all toolstrips are same height

LayoutToolStripsIfNeeded ( ) : void

Calls LayoutToolStrips if layout is needed

ToolStripManager ( ) : System

Protected Methods

Method Description
HandleToolStripClientSizeChanged ( object sender, EventArgs e ) : void

If a ToolStip in m_toolStripList is modified invalidate Layout

Method Details

AddMenuStrip() public method

Adds the one and only MenuStrip Throws ApplicationException if this is called multiple times.
public AddMenuStrip ( MenuStrip menuStrip ) : void
menuStrip System.Windows.Forms.MenuStrip
return void

AddToolStrip() public method

Add ToolStrips - This can be callled Multiple times
public AddToolStrip ( ToolStrip toolStrip ) : void
toolStrip System.Windows.Forms.ToolStrip
return void

HandleToolStripClientSizeChanged() protected method

If a ToolStip in m_toolStripList is modified invalidate Layout
protected HandleToolStripClientSizeChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

InvalidateLayout() public method

Mark that the layout needs to be reflowed
public InvalidateLayout ( ) : void
return void

LayoutToolStrips() public method

layout toolstrips by size Assumes all toolstrips are same height
public LayoutToolStrips ( ) : void
return void

LayoutToolStripsIfNeeded() public method

Calls LayoutToolStrips if layout is needed
public LayoutToolStripsIfNeeded ( ) : void
return void

ToolStripManager() public method

public ToolStripManager ( ) : System
return System

Property Details

m_MenuStrip protected_oe property

protected MenuStrip,System.Windows.Forms m_MenuStrip
return System.Windows.Forms.MenuStrip

m_needLayout protected_oe property

protected bool m_needLayout
return bool

m_toolStripList protected_oe property

protected List m_toolStripList
return List