DataGridViewCell.ToString 方法

定義

傳回描述目前物件的字串。Returns a string that describes the current 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 current object.

備註

除非另有說明,否則所有各種資料格類型的 ToString 方法都會傳回下列程式碼範例所示格式的字串:Unless otherwise noted, the ToString method for all the various cell types will return a string of the form shown in the following code example:

Classname {RowIndex = #, ColumnIndex = #}

適用於

另請參閱