Back to Devexpress

RowProperties.ImageIndex Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-rows-dot-rowproperties-ac412c4d.md

latest3.7 KB
Original Source

RowProperties.ImageIndex Property

Use the ImageIndex option accessible in RowProperties.ImageOptions to specify the index of the image displayed within a row item header.

Namespace : DevExpress.XtraVerticalGrid.Rows

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

csharp
[Browsable(false)]
[DefaultValue(-1)]
[EditorBrowsable(EditorBrowsableState.Never)]
[ImageList("Images")]
[XtraSerializableProperty]
public int ImageIndex { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<DefaultValue(-1)>
<XtraSerializableProperty>
<ImageList("Images")>
Public Property ImageIndex As Integer

Property Value

TypeDefaultDescription
Int32-1

An integer value representing the zero-based index of the image displayed within a row item header.

|

Remarks

Use the ImageIndex property to specify the row header image for a row item. The source of these images is specified by the VGridControlBase.ImageList property. The ImageIndex property value is the index of the desired image within this image list.

Assigning values to the ImageIndex property is not in effect if the VGridControlBase.CustomDrawRowHeaderCell event handler specifies a different row item image.

If the ImageIndex property is set to -1 , no image is displayed.

Tip

You can also assign an image by its name in the collection.

csharp
// The image collection is created and populated with images at design time.
barItem.ImageOptions.Image = imageCollection1["technology_32x32"]; 
// Assign an SVG image in the SvgCollection
// barItem.ImageOptions.SvgImage = svgCollection1["technology_32x32"];
vb
' The image collection is created and populated with images at design time.
barItem.ImageOptions.Image = imageCollection1("technology_32x32")
' Assign an SVG image in the SvgCollection
' barItem.ImageOptions.SvgImage = svgCollection1["technology_32x32"];

Read the following help topic for more information: Access and Use DevExpress Icons in Code.

See Also

CustomDrawRowHeaderCell

ImageList

RowProperties Class

RowProperties Members

DevExpress.XtraVerticalGrid.Rows Namespace