Modifica

Condividi tramite


ToolTip.Tag Property

Definition

Gets or sets the object that contains programmer-supplied data associated with the ToolTip.

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; }
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.StringConverter))]
public object? Tag { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.ComponentModel.StringConverter))>]
member this.Tag : obj with get, set
Public Property Tag As Object

Property Value

An Object that contains data about the ToolTip. The default is null.

Attributes

Remarks

Typically, you use the Tag property to store data that is closely associated with the ToolTip. For example, if you are displaying a ToolTip for a control that displays customer information, you might store the DataSet that contains the customer's information in the Tag property so the data can be accessed quickly.

Applies to

See also