Control.ToString 方法

定義

傳回 Control 物件的字串表示。Returns the string representation of a Control object.

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

傳回

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.

適用於