Xceed SmartUI for WinForms v3.6 Documentation
ImageIndex Property (SmartItem)


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartItem Class : ImageIndex Property
Gets or sets a value representing the index of the image retrieved from the ImageList.
Syntax
'Declaration
 
<DescriptionAttribute("The index of the image retrieved from the ImageList.")>
<CategoryAttribute("Appearance")>
<DefaultValueAttribute()>
<BrowsableAttribute(True)>
<MergablePropertyAttribute(True)>
<LocalizableAttribute(True)>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="Xceed.SmartUI.Design.ImageIndexDesigner, Xceed.SmartUI.v3.6.Design, Version=3.6.17407.00005, Culture=neutral, PublicKeyToken=ba83ff368b7563c6")>
<TypeConverterAttribute("System.Windows.Forms.ImageIndexConverter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>
Public Property ImageIndex As Integer
'Usage
 
Dim instance As SmartItem
Dim value As Integer
 
instance.ImageIndex = value
 
value = instance.ImageIndex
[Description("The index of the image retrieved from the ImageList.")]
[Category("Appearance")]
[DefaultValue()]
[Browsable(true)]
[MergableProperty(true)]
[Localizable(true)]
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="Xceed.SmartUI.Design.ImageIndexDesigner, Xceed.SmartUI.v3.6.Design, Version=3.6.17407.00005, Culture=neutral, PublicKeyToken=ba83ff368b7563c6")]
[TypeConverter("System.Windows.Forms.ImageIndexConverter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public int ImageIndex {get; set;}

Property Value

A value representing the index of the image associated with the SmartItem.
Remarks

If both the Image and ImageIndex properties are set, the image assigned to the Image property will be used.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SmartItem Class
SmartItem Members