Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.v3.6 Assembly / Xceed.SmartUI Namespace / SmartItem Class / ImageIndex Property


In This Topic
    ImageIndex Property (SmartItem)
    In This Topic
    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(-1)>
    <BrowsableAttribute(True)>
    <MergablePropertyAttribute(True)>
    <LocalizableAttribute(True)>
    <EditorAttribute("Xceed.SmartUI.Design.ImageIndexDesigner, Xceed.SmartUI.v3.6.Design, Version=3.6.25208.5768, Culture=neutral, PublicKeyToken=ba83ff368b7563c6", System.Drawing.Design.UITypeEditor)>
    <TypeConverterAttribute(System.Windows.Forms.ImageIndexConverter)>
    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(-1)]
    [Browsable(true)]
    [MergableProperty(true)]
    [Localizable(true)]
    [Editor("Xceed.SmartUI.Design.ImageIndexDesigner, Xceed.SmartUI.v3.6.Design, Version=3.6.25208.5768, Culture=neutral, PublicKeyToken=ba83ff368b7563c6", System.Drawing.Design.UITypeEditor)]
    [TypeConverter(System.Windows.Forms.ImageIndexConverter)]
    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