Gets or sets an image index within an ImageList control. Smartclient-only property.
object.ImageIndex = [integer]
Where object is an object expression that evaluates to one of the controls in the Applies To list, and integer is the index of the image (in the associated ImageList control) that you wish to display.
Newlook Smartclient only.
This property is used to specify the index of the image (within an associated ImageList control) which you wish to display in the tab button for the current tab page object.
If the TabStyle property is set to Custom, then the image will display centered, as the background of the tab button and any button text will appear on top of the image. If the TabStyle property is set to Normal then the image will display as an icon to the left of the button text.
Before setting the ImageIndex property, you must associate an existing ImageList control to the active control via the ImageList property. Ensure that the image height and width are set to an appropriate value within your ImageList control.
This property is used to specify the index of the image (within an associated ImageList control) you want to display as an icon in the column header to the left of the header text.
Before setting the ImageIndex property, you must associate an existing ImageList control to the active control via the ImageList property. Ensure that the image height and width are set to an appropriate value within your ImageList control.
This property is used to specify the index of the image (within an associated ImageList control) you want to display as an icon in the specified cell. Note that the contents of a datagrid cell can only be set to an image at runtime. The following example shows you the syntax you would use to set the first cell of the PNG column to the ImageIndex 0, which would equate to the first image in your ImageList's image collection.
App.ActiveForm.myGrid.Columns.png.Cells(0).ImageIndex = 0;
Before setting the ImageIndex property of a grid cell, you must define the column's Type property as Image. You can either do this at Design-time via the Column collection editor or at runtime via a script or macro.
Before setting the ImageIndex property, you must associate an existing ImageList control to the active control via the ImageList property. Ensure that the image height and width are set to an appropriate value within your ImageList control.
ImageList Property | ImageList control | Tab control | Grid control | SelectedImageIndex property | HoverImageIndex property
© 2004-2021 looksoftware. All rights reserved.