System.Windows.Forms.ToolStrip.LayoutCompleted Event

Occurs when the layout of the System.Windows.Forms.ToolStrip is complete.

Syntax

public event EventHandler LayoutCompleted

Remarks

When items do not fit within the System.Windows.Forms.ToolStrip, an overflow button automatically appears. The ToolStripItem.Overflow property setting determines whether an item appears in the overflow area always, as needed, or never.

Inspect the ToolStripItem.Placement property in the ToolStrip.LayoutCompleted event to determine whether an item was placed on the main System.Windows.Forms.ToolStrip, the overflow System.Windows.Forms.ToolStrip, or if it is not currently showing at all. The typical reasons why an item is not displayed are that the item did not fit on the main System.Windows.Forms.ToolStrip and its ToolStripItem.Overflow property was set to ToolStripItemOverflow.Never.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0