ToolStripItem::Placement Property
.NET Framework (current version)
Gets the current layout of the item.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property ToolStripItemPlacement Placement { ToolStripItemPlacement get(); }
Property Value
Type: System.Windows.Forms::ToolStripItemPlacementOne of the ToolStripItemPlacement values.
Inspect the Placement property in a LayoutCompleted event to determine whether an item was placed on the main ToolStrip, the overflow 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 ToolStrip and its Overflow property was set to Never.
The following code example demonstrates how to use the Placement property for custom rendering. This code example is part of a larger example provided for the ToolStripItem class.
.NET Framework
Available since 2.0
Available since 2.0
Show: