Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxStringGridReportLink.OnCustomDrawCell Event

In This Article

Occurs when drawing a cell.

#Declaration

Delphi
property OnCustomDrawCell: TdxCustomDrawTextCellEvent read; write;

#Remarks

Write an OnCustomDrawCell event handler to draw a cell. The ACanvas parameter determines the drawing canvas.

Value Description
ABoundsRect Rectangular cell area including borders.
AClientRect Rectangular cell area excluding borders.
ACol Column of a cell.
ARow Row of a cell.
AText Context of a cell. It can be changed, if necessary.
AColor Specifies background color. It can be changed, if necessary.
AFont Font of a cell. It can be changed, if necessary.
ATextAlignX Horizontal text alignment within a cell. It can be changed, if necessary.
ATextAlignY Vertical text alignment within a cell. It can be changed, if necessary.
ADone Determines whether the OnCustomDrawCell event handler entirely draws a cell. If ADone is True, the default drawing procedure is not called.

Note

This property is only accessible if the SupportedCustomDraw property is set to True.

See Also