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






Gets or sets the image key accessor value for the image in the ImageList displayed on the CommandItem.

Syntax

Visual Basic (Declaration) 
Public Property ImageKey As String
Visual Basic (Usage)Copy Code
Dim instance As CommandItem
Dim value As String
 
instance.ImageKey = value
 
value = instance.ImageKey
C# 
public string ImageKey {get; set;}
Delphi 
public read-write property ImageKey: String; 
JScript 
public function get,set ImageKey : String
Managed Extensions for C++ 
public: __property string* get_ImageKey();
public: __property void set_ImageKey( 
   string* value
);
C++/CLI 
public:
property String^ ImageKey {
   String^ get();
   void set (String^ value);
}

Return Value

A System.String value, this property is the key for the image in the ImageList displayed on the CommandItem. The default value for this property is the empty string.

Remarks

When the ImageKey is set then Image and ImageIndex are set to thier default values. Image is set to null (Nothing for Visual Basic) and ImageIndex to -1.

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