ToolStripItem::Tag Property

 

Gets or sets the object that contains data about the item.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
[BindableAttribute(true)]
[TypeConverterAttribute((StringConverter^::typeid))]
property Object^ Tag {
	Object^ get();
	void set(Object^ value);
}

Property Value

Type: System::Object^

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

The following code example shows a ToolStripLabel with its Tag property set to an active link.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: