This documentation is archived and is not being maintained.

ToolBar.ToolBarButtonCollection Members

ToolBar.ToolBarButtonCollection overview

Public Constructors

public constructorToolBarToolBarButtonCollection Constructor Initializes a new instance of the ToolBar.ToolBarButtonCollection class and assigns it to the specified toolbar.

Public Properties

public propertyCount

Supported by the .NET Compact Framework.

Gets the number of buttons in the toolbar button collection.
public propertyIsReadOnly

Supported by the .NET Compact Framework.

Gets a value indicating whether the collection is read-only.
public propertyItem Gets or sets the toolbar button at the specified indexed location in the toolbar button collection.

In C#, this property is the indexer for the ToolBar.ToolBarButtonCollection class.

Public Methods

public methodAdd

Supported by the .NET Compact Framework.

Overloaded. Adds a new toolbar button to the end of the toolbar button collection.
public methodAddRange Adds a collection of toolbar buttons to this toolbar button collection.
public methodClear

Supported by the .NET Compact Framework.

Removes all buttons from the toolbar button collection.
public methodContains

Supported by the .NET Compact Framework.

Determines if the specified toolbar button is a member of the collection.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator

Supported by the .NET Compact Framework.

Returns an enumerator that can be used to iterate through the toolbar button collection.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodIndexOf

Supported by the .NET Compact Framework.

Retrieves the index of the specified toolbar button in the collection.
public methodInsert

Supported by the .NET Compact Framework.

Inserts an existing toolbar button in the toolbar button collection at the specified location.
public methodRemove

Supported by the .NET Compact Framework.

Removes a given button from the toolbar button collection.
public methodRemoveAt

Supported by the .NET Compact Framework.

Removes a given button from the toolbar button collection.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

ToolBar.ToolBarButtonCollection Class | System.Windows.Forms Namespace

Show: