MenuItem.ToString 方法

定义

返回表示 MenuItem 的字符串。Returns a string that represents the MenuItem.

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

返回

String

表示当前 MenuItem 的字符串。A string that represents the current MenuItem. 该字符串包括该控件的类型和 Text 属性。The string includes the type and the Text property of the control.

适用于