ICreate.Controls.Bars Send comments on this topic.
Tag Property
See Also 
ICreate.Controls.Bars Namespace > BarItem Class : Tag Property






Gets or sets the object containing supplemental data about the BarItem.

Syntax

Visual Basic (Declaration) 
Public Property Tag As Object
Visual Basic (Usage)Copy Code
Dim instance As BarItem
Dim value As Object
 
instance.Tag = value
 
value = instance.Tag
C# 
public object Tag {get; set;}
Delphi 
public read-write property Tag: TObject; 
JScript 
public function get,set Tag : Object
Managed Extensions for C++ 
public: __property Object* get_Tag();
public: __property void set_Tag( 
   Object* value
);
C++/CLI 
public:
property Object^ Tag {
   Object^ get();
   void set (Object^ value);
}

Return Value

A reference to System.Object, this property can be used by the programmer to store additional information related to the BarItem. The default is a null reference (Nothing in Visual Basic).

Remarks

Any type derived from the Object class can be assigned to this property. The Tag property is commonly used to store data that is closely associated with the BarItem and required to process BarItem Click event.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also