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






Gets or sets the index of the image in the ImageList displayed on the CommandItem.

Syntax

Visual Basic (Declaration) 
Public Property ImageIndex As Integer
Visual Basic (Usage)Copy Code
Dim instance As CommandItem
Dim value As Integer
 
instance.ImageIndex = value
 
value = instance.ImageIndex
C# 
public int ImageIndex {get; set;}
Delphi 
public read-write property ImageIndex: Integer; 
JScript 
public function get,set ImageIndex : int
Managed Extensions for C++ 
public: __property int get_ImageIndex();
public: __property void set_ImageIndex( 
   int value
);
C++/CLI 
public:
property int ImageIndex {
   int get();
   void set (int value);
}

Return Value

A System.Int32 value this property is a zero-based index. It represents the position in the image in the ImageList that is displayed on the CommandItem. The default is -1.

Remarks

When the ImageIndex is set then Image and ImageKey are set to their default values. Image is set to null (Nothing for Visual Basic) and ImageKey to the empty string.

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