Back to Devexpress

RowCellCustomDrawEventArgs Class

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-b1922713.md

latest3.9 KB
Original Source

RowCellCustomDrawEventArgs Class

Provides data for the GridView.CustomDrawCell, CardView.CustomDrawCardField, CardView.CustomDrawCardFieldCaption, and CardView.CustomDrawCardFieldValue events.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public class RowCellCustomDrawEventArgs :
    CustomDrawEventArgs
vb
Public Class RowCellCustomDrawEventArgs
    Inherits CustomDrawEventArgs

RowCellCustomDrawEventArgs is the data class for the following events:

Remarks

When handling events that use RowCellCustomDrawEventArgs objects as parameters, you may need to identify the painted element’s location and content. The row where the painted element resides can be identified using the object’s inherited RowCellCustomDrawEventArgs.RowHandle property. The RowCellCustomDrawEventArgs.Column property identifies the column that owns the element. To obtain the painted element’s content, use the RowCellCustomDrawEventArgs.CellValue and RowCellCustomDrawEventArgs.DisplayText properties. Additionally, the RowCellCustomDrawEventArgs class provides data common to all custom painting events.

RowCellCustomDrawEventArgs objects are automatically created, initialized and passed to appropriate event handlers.

Inheritance

Object EventArgs CustomDrawEventArgs RowCellCustomDrawEventArgs

See Also

RowCellCustomDrawEventArgs Members

CustomDrawCell

CustomDrawCardField

CustomDrawCardFieldCaption

CustomDrawCardFieldValue

DevExpress.XtraGrid.Views.Base Namespace