System.Windows.Forms.Menu.ToString Method

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

Syntax

public override string ToString ()

Returns

A string that represents the current System.Windows.Forms.Menu.

Remarks

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

Requirements

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