System.Windows.Forms.ToolBar.ToString Method

Returns a string that represents the System.Windows.Forms.ToolBar control.

Syntax

public override string ToString ()

Returns

A String that represents the current System.Windows.Forms.ToolBar.

Remarks

The ToolBar.ToString method returns a string that includes the type, the value of the System.Windows.Forms.ToolBar.ToolBarButtonCollection.Count property in the System.Windows.Forms.ToolBar.ToolBarButtonCollection, and the string returned by the ToolBar.ToString method of the toolbar’s first button.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0