Skip to main content

LayoutViewCardCaptionImageEventArgs(Int32, Object, Int32, Image, Boolean) Constructor

Initializes a new instance of the LayoutViewCardCaptionImageEventArgs class.

Namespace: DevExpress.XtraGrid.Views.Layout.Events

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public LayoutViewCardCaptionImageEventArgs(
    int rowHandle,
    object list,
    int imageIndex,
    Image image,
    bool imageVisible
)

Parameters

Name Type Description
rowHandle Int32

An integer value which identifies the processed card. This value is assigned to the CardCaptionImageEventArgs.RowHandle property.

list Object

An object which represents the source of images. This value is assigned to the CardCaptionImageEventArgs.ImageList property.

imageIndex Int32

A zero-based integer specifying the image by its index within the source collection. -1, if no image is assigned to a visual element from the source collection. This value is assigned to the CardCaptionImageEventArgs.ImageIndex property.

image Image

A System.Drawing.Image object representing the image to be displayed within an element. This value is assigned to the CardCaptionImageEventArgs.Image property.

imageVisible Boolean

A Boolean value that specifies whether the image in the card’s caption is visible. This value is assigned to the LayoutViewCardCaptionImageEventArgs.CaptionImageVisible property.

See Also