ToolStripItem::Placement Property

 

Gets the current layout of the item.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
[BrowsableAttribute(false)]
property ToolStripItemPlacement Placement {
	ToolStripItemPlacement get();
}

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: