Skip to main content

RowCellCustomDrawEventArgs(GraphicsCache, Rectangle, AppearanceObject, Int32, GridColumn, Object, String) Constructor

Initializes a new instance of the RowCellCustomDrawEventArgs class with the specified settings.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public RowCellCustomDrawEventArgs(
    GraphicsCache cache,
    Rectangle bounds,
    AppearanceObject appearance,
    int rowHandle,
    GridColumn column,
    object cellValue,
    string displayText
)

Parameters

Name Type Description
cache GraphicsCache

A GraphicsCache object that specifies the storage for the most used pens, fonts and brushes. This value is assigned to the CustomDrawEventArgs.Cache property.

bounds Rectangle

A Rectangle structure that specifies the boundaries of the painted element. This value is assigned to the CustomDrawEventArgs.Bounds property.

appearance AppearanceObject

An AppearanceObject object that provides the appearance settings used to paint a cell. This value is assigned to the CustomDrawEventArgs.Appearance property.

rowHandle Int32

An integer value identifying the row in which the painted element resides. This value is assigned to the RowCellCustomDrawEventArgs.RowHandle property.

column GridColumn

A GridColumn object that represents the column containing the painted data cell. This value is assigned to the RowCellCustomDrawEventArgs.Column property.

cellValue Object

An object representing the painted cell’s value. This value is assigned to the RowCellCustomDrawEventArgs.CellValue property.

displayText String

A string value that represents the painted cell’s display text. This value is assigned to the RowCellCustomDrawEventArgs.DisplayText property.

See Also