Menu.ToString 方法

定义

返回表示 String 控件的 MenuReturns a String that represents the Menu control.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

返回

一个 String,表示当前的 MenuA String that represents the current Menu.

注解

ToString 方法返回一个 String,其中包含控件的 MenuItems 属性中的项的类型和数目。The ToString method returns a String that includes the type and the number of items in the MenuItems property of the control.

适用于