Xceed SmartUI for WinForms v3.6 Documentation
Image Property


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartItem Class : Image Property
Gets or sets the image associated with the SmartItem.
Syntax
'Declaration
 
<DescriptionAttribute("The image associated with the SmartItem.")>

<CategoryAttribute("Appearance")>

<DefaultValueAttribute()>

<BrowsableAttribute(True)>

<MergablePropertyAttribute(True)>

<LocalizableAttribute(True)>

Public Property Image As Image
'Usage
 
Dim instance As SmartItem

Dim value As Image

 

instance.Image = value

 

value = instance.Image
[Description("The image associated with the SmartItem.")]

[Category("Appearance")]

[DefaultValue()]

[Browsable(true)]

[MergableProperty(true)]

[Localizable(true)]

public Image Image {get; set;}

Property Value

A reference to an Image representing the image associated with the SmartItem
Remarks

The image can be located in the SmartItem's ImageList or it can be explicitly set via the Image property.

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
ImageList Property