Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ToolStripItemCollection Class

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
Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.