Menu.ToString Menu.ToString Menu.ToString Menu.ToString Method

定义

返回表示 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.

适用于