Menu.ToString Method ()


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