Menu.ToString Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns a String that represents the Menu control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public override string ToString()

Return Value

Type: System.String

A String that represents the current Menu.

The ToString method returns a String that includes the type and the number of items in the MenuItems property of the control.

.NET Framework
Available since 1.1
Return to top