Skip to main content

TdxCustomTreeView.OnGetSelectedImageIndex Event

Allows you to specify the image for the selected node.

Declaration

property OnGetSelectedImageIndex: TdxTreeViewGetImageIndexEvent read; write;

Remarks

This event occurs every time the Tree View control redraws a selected node. Assign an image index to the AImageIndex parameter to display the corresponding image from the image source in a node passed as the ANode parameter.

Note

The OnGetSelectedImageIndex event occurs only if the Tree View control’s OptionsView.UseImageIndexForSelected property is set to True.

Refer to the TdxTreeViewGetImageIndexEvent type description for information on available options.

See Also