ToolStripItemCollection Class
Assembly: System.Windows.Forms (in system.windows.forms.dll)
'Declaration Public Class ToolStripItemCollection Inherits ArrangedElementCollection Implements IList, ICollection, IEnumerable 'Usage Dim instance As ToolStripItemCollection
public class ToolStripItemCollection extends ArrangedElementCollection implements IList, ICollection, IEnumerable
public class ToolStripItemCollection extends ArrangedElementCollection implements IList, ICollection, IEnumerable
The Add, Remove, and RemoveAt methods enable you to add and remove individual controls from the collection. You can also use the AddRange or Clear methods to add or remove all the controls from the collection.
You can determine whether a ToolStripItem is a member of the collection by passing the control into the Contains method. To get the index value of the location of a ToolStripItem in the collection, pass the control into the IndexOf method. The collection can be copied into an array by calling the CopyTo method.
System.Windows.Forms.Layout.ArrangedElementCollection
System.Windows.Forms.ToolStripItemCollection
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.