ToolStrip.DisplayedItems Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the subset of items that are currently displayed on the ToolStrip, including items that are automatically added into the ToolStrip.

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

protected internal virtual ToolStripItemCollection DisplayedItems { get; }

Property Value

Type: System.Windows.Forms.ToolStripItemCollection

A ToolStripItemCollection representing the items that are currently displayed on the ToolStrip.

Use the DisplayedItems property to access only those items that are currently displayed. These are the items that are not currently in an overflow menu.

Use the Items collection to retrieve all the items of a ToolStrip.

.NET Framework
Available since 2.0
Return to top
Show: