ArcGIS Explorer Component Help |
ComboItem..::.Image Property |
ComboItem Class See Also |
Assembly: ESRI.ArcGISExplorer.Application (in ESRI.ArcGISExplorer.Application.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
Field Value
A Image used to display the ComboItem in the Ribbon.Remarks
Each ComboItem has an image - an icon indicating the action or effect of choosing this specific ComboItem. The Image is displayed above the Caption in the ComboBox. Although it is recommended that each ComboItem have both a valid Caption and Image, the Image can be null, in which case only the Caption is displayed.
Although Images in a ComboBox may be identical, it is recommended that the image used is a visual representation of the action or effect of choosing this specific ComboItem, and therefore that images are different for each ComboItem, to help the user identify each item from the other items.
Images can very simply be created using the static methods on the Image class which allow an image to be created from various sources; the example code below demonstrates the use of the FromFile(String) method to create an Image from a path to an image file. Alternatively, create a Bitmap, which can be cast to an Image can therefore be set into the Image property.