Export (0) Print
Expand All

ToolStripItemCollection Class

Note: This class is new in the .NET Framework version 2.0.

Represents a collection of ToolStripItem objects.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public class ToolStripItemCollection : ArrangedElementCollection, IList, ICollection, IEnumerable
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.Object
   System.Windows.Forms.Layout.ArrangedElementCollection
    System.Windows.Forms.ToolStripItemCollection

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft