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






The zero-base index of the image in the ImageList displayed on the left side of the BarItemCommand.

Syntax

Visual Basic (Declaration) 
Public Property ImageIndex As Integer
Visual Basic (Usage)Copy Code
Dim instance As BarItemCommand
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 specifies the index of the image, in the ImageList of the Parent Bar, to display on the left of the BarItemCommand. A value of -1 indicates that the ImageIndex is not applicable. The default value is -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