DataGridViewCell.Tag DataGridViewCell.Tag DataGridViewCell.Tag DataGridViewCell.Tag Property

定義

取得或設定物件,其中包含儲存格的相關補充資料。Gets or sets the object that contains supplemental data about the cell.

public:
 property System::Object ^ Tag { System::Object ^ get(); void set(System::Object ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.StringConverter))]
public object Tag { get; set; }
member this.Tag : obj with get, set
Public Property Tag As Object

屬性值

Object,其中包含有關儲存格的資料。An Object that contains data about the cell. 預設為 nullThe default is null.

備註

任何衍生自類別的Object型別都可以指派給這個屬性。Any type derived from the Object class can be assigned to this property. Tag屬性通常用來儲存與儲存格所顯示的值密切相關聯的資料。The Tag property is commonly used to store data that is closely associated with the value displayed by the cell.

適用於

另請參閱