Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
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

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

Put

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

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 08/13/2020 - (email)
© 2024 Softel vdm, Inc.