Back to Devexpress

LayoutViewColumn.Image Property

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-layoutviewcolumn-da40d6b5.md

latest2.3 KB
Original Source

LayoutViewColumn.Image Property

Gets or sets the image displayed within the field’s caption.

Namespace : DevExpress.XtraGrid.Columns

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(null)]
public override Image Image { get; set; }
vb
<DefaultValue(Nothing)>
Public Overrides Property Image As Image

Property Value

TypeDefaultDescription
Imagenull

An image displayed within the field’s caption.

|

Remarks

It’s possible to assign an image to a field’s caption via either the Image or LayoutViewColumn.ImageIndex property. If both properties are set, the image assigned via the Image property has higher priority.

To dynamically assign images to fields (for instance, depending on a card’s or field’s state), use the LayoutView.CustomFieldCaptionImage event.

See Also

Images

LayoutViewField

LayoutViewColumn.ImageIndex

Alignment

ImageToTextDistance

CustomFieldCaptionImage

LayoutViewColumn Class

LayoutViewColumn Members

DevExpress.XtraGrid.Columns Namespace