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

TCustomdxTreeViewReportLink.OnCustomDrawNode Event

In This Article

Occurs when drawing a specific node within a tree view control.

#Declaration

Delphi
property OnCustomDrawNode: TdxTVCustomDrawNodeEvent read; write;

#Remarks

Write an OnCustomDrawNode event handler to draw a specific node when printing a report. Draw a cell using the TCanvas method.

Parameter Description
ANode Specifies a specific node of a tree view component.
ACanvas Determines canvas for drawing.
ABoundsRect Specifies rectangle including borders for drawing.
AClientRect Specifies rectangle excluding borders for drawing.
AText Determines node text. You can change it if necessary.
AFont Specifies font for drawing node text. You can change it, if necessary.
AColor Specifies the background color of a node. You can change it, if necessary.
ATextAlignX Determines horizontal text alignment of a node. You can change it, if necessary.
ATextAlignY Determines vertical text alignment of a node. You can change it, if necessary.
ADone Determines whether the OnCustomDrawNode event handler entirely draws a node. If ADone is True, the default drawing procedure is not called.

In order to specify the color, font, text or alignment, used for drawing a specific node, set proper values for the AColor, AFont, AText, ATextAlignX or ATextAlignY parameters and set ADone to False within the OnCustomDrawNode event handler.

See Also