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

TTreeNode.ImageIndex

Ordinal position for the image displayed for the node, or -1 when no image is assigned.

Declaration

Source position: comctrls.pp line 3139

public property TTreeNode.ImageIndex : TImageIndex
  read FImageIndex
  write SetImageIndex
  default - 1;

Description

ImageIndex is an Integer property with the ordinal position for the image displayed for the node. It refers to a bitmap stored in the Images property of the associated TreeView control. The default value for the property is -1, and indicates that an image has not been assigned.

Setting a new value for the property causes the Update method to be called to redraw the associated tree view control. The Changed method is called with the ncImageIndex node change reason.

See also

TTreeNode.StateIndex

  

Ordinal position for the image displayed to represent the state for the tree node.

TTreeNode.OverlayIndex

  

Ordinal position for the overlay image used for the node.

TTreeNode.SelectedIndex

  

Ordinal position for the image displayed when the tree node is Selected.


Version 3.2 Generated 2024-02-25 Home