HeaderPane
Main
Hide
Share Link
Print

ListIndex Property, SftTree Object

Defines the current item (caret location).

Deprecated - Provided for compatibility with earlier versions only - Use Items.Current instead

Syntax

Get

C#int ItemIndex = object.ListIndex;
VB.NETItemIndex = object.ListIndex As Integer
C++long ItemIndex = object->ListIndex;
long ItemIndex = object->GetListIndex();
CHRESULT object->get_ListIndex(long* ItemIndex);
VBItemIndex = object.ListIndex As Long

Put

C#int object.ListIndex = ItemIndex;
VB.NETobject.ListIndex = ItemIndex As Integer
C++long object->ListIndex = ItemIndex;
void object->PutListIndex(long ItemIndex);
CHRESULT object->put_ListIndex(long ItemIndex);
VBobject.ListIndex = ItemIndex As Long

object

A SftTree object.

ItemIndex

Defines the current item (caret location).

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.Current instead

The ListIndex property defines the current item (caret location).

The ListIndex property describes the current item, which is the item that has the focus rectangle. This item is not necessarily also selected. The current item is described by the ListIndex property, the currently selected item is described by the Items.Selection property. These are not necessarily the same even in a single-selection tree control (see Items.NoSelection property).

If the tree control is empty, the ListIndex property returns -1. An application must set the property to a valid, existing item. It cannot set it to -1.

The focus rectangle can be hidden using the Items.ShowFocusRectangle property.

See Also SftTree Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.