Skybound Rebar

RebarMenuExtender.GetImage Method 

Gets the image associated with a menu item.

[Visual Basic]
Public Function GetImage( _
   ByVal menuItem As MenuItem _
) As Image
[C#]
public Image GetImage(
   MenuItem menuItem
);

Parameters

menuItem
The menu item whose associated image is returned.

Return Value

The Image associated with a menu item.

Remarks

Note that no image is actually displayed on the menu unless it its containing ContextMenu has been assigned a popup theme, or the ContextMenu is being displayed by a rebar control.

If you create a RebarMenuItemRenderer in order to owner-draw a menu item, the Image property of the renderer will contain the image assigned by this method.

See Also

RebarMenuExtender Class | Skybound.Rebar Namespace