[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TTreeNode.NodeEffect

Graphic drawing effect applied to the node in the associated TreeView control.

## Declaration

Source position: comctrls.pp line 3167

`public property TTreeNode.NodeEffect : TGraphicsDrawEffect read FNodeEffect write SetImageEffect;`

## Description

NodeEffect is a TGraphicsDrawEffect property with the drawing effect applied to the tree node when it is drawn on the associated TreeView control. NodeEffect controls the drawing style applied to both the text and the image for a given node.

The default value is gdeNormal as assigned in the constructor for the tree node instance. This causes the tree node to be drawn with no effect applied to the node. See TGraphicsDrawEffect for the other values allowed in the property, and their meanings.

Changing the value for the property causes the Update method to be called to redraw the TreeView control for the node. The Changed method is called to notify the TreeView control of the reason that the node was changed.

Use the ImageIndex and OverlayIndex properties to specify the primary and overlay images drawn for the tree node. The visual drawing effect is also updated when values are changed in the Cut, Expanded, Focused, Selected, or Enabled properties.

## See also

TTreeNode.Update |  | Redraws the associated TreeView control if an update is not already in progress.
TTreeNode.ImageIndex |  | Ordinal position for the image displayed for the node, or -1 when no image is assigned.
TTreeNode.OverlayIndex |  | Ordinal position for the overlay image used for the node.
TTreeNode.Cut |  | Indicates if the tree node has been cut from the tree structure.
TTreeNode.Expanded |  | True if the node has been expanded, False when collapsed.
TTreeNode.Focused |  | True if the node has focus in the TreeView control.
TTreeNode.Selected |  | True if the current node is selected in the tree view control.
TTreeNode.Enabled |  | Controls whether the tree node can be selected, and its visual appearance.
TCustomTreeView.NodeChanged |  | Performs actions when a property value in the specified tree node has been changed.
TCustomTreeView.Invalidate |  | Causes the control to be redrawn when a redraw is not already in progress.
TCustomTreeView.Paint |  | Renders the tree view control.
TGraphicsDrawEffect