Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

BaseMenuItem.Image Property

Specifies a collection of images that are used to display in an item for different states and how the images are displayed in the item.

[Visual Basic]
Public Property Image As MenuItemImages
[C#]
public MenuItemImages Image {get; set;}

Property Value

EO.Web.MenuItemImages

The property is read / write.

Remarks

This property defines a set of images and how the images are displayed in an item.

To define a set of images, specify URLs of the images for different item states. EO.Web control automatically switches to the corresponding image for the state. See item states for details.

To define displaying mode for the images, specify the item's Image.Mode property. There are three basic image displaying mode:

  • Image-only item: displays the corresponding image for a state as the only content of the item. LeftIcon, RightIcon, Text, CustomItem are all ignored.
  • As item's background: displays the corresponding image for a state as the item's background.
  • As Text's background: displays the corresponding image for a state as the item text's background.
See MenuItemImages's ImageModes property for enum details.

Tip:  No need to provide images for every state. In most case, providing images for Normal state and Hover state is good enough.

See Also

BaseMenuItem Class | EO.Web Namespace | ImageMode


Direct link to this topic