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. |
ABounds |
Specifies rectangle including borders for drawing. |
AClient |
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. |
AText |
Determines horizontal text alignment of a node. You can change it, if necessary. |
AText |
Determines vertical text alignment of a node. You can change it, if necessary. |
ADone | Determines whether the On |
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