Control.ToString Control.ToString Control.ToString Control.ToString Method

定义

返回 Control 对象的字符串表示形式。Returns the string representation of a Control object.

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

返回

表示此控件的字符串。A string that represents the control.

注解

控件作者应重写此方法以返回一个字符串, 该字符串包含控件的使用者所需的信息。Control authors should override this method to return a string that contains information that would be of interest to consumers of the control.

适用于