HeaderPane
Main
Hide
Share Link
Print

Selected Property, SftTree Object

Defines whether an item is selected.

Deprecated - Provided for compatibility with earlier versions only - Use Item.Selected instead

Syntax

Get

C#bool Boolean = object.get_Selected(int ItemIndex);
VB.NETBoolean = object.get_Selected(ByVal ItemIndex As Integer) As Boolean
C++VARIANT_BOOL Boolean = object->Selected[long ItemIndex];
VARIANT_BOOL Boolean = object->GetSelected(long ItemIndex);
CHRESULT object->get_Selected(long ItemIndex, VARIANT_BOOL* Boolean);
VBBoolean = object.Selected(ByVal ItemIndex As Long) As Boolean

Put

C#void object.set_Selected(int ItemIndex, bool Boolean);
VB.NETobject.set_Selected(ByVal ItemIndex As Integer, ByVal Boolean As Boolean)
C++VARIANT_BOOL object->Selected[long ItemIndex] = Boolean;
void object->PutSelected(long ItemIndex, VARIANT_BOOL Boolean);
CHRESULT object->put_Selected(long ItemIndex, VARIANT_BOOL Boolean);
VBobject.Selected(ByVal ItemIndex As Long) = Boolean As Boolean

object

A SftTree object.

ItemIndex

The zero-based item index.

Boolean

Defines whether the item is selected.

BooleanDescription
TrueThe item is selected.
FalseThe item is not selected.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.Selected instead

The Selected property defines whether an item is selected.

The Items.SelectRange method can be used to select a range of items at one time. Items can be selected individually using the Item.Selected property.

The Items.Selection property returns the index of one or more selected items. The Items.SelectionGroupStart and Items.SelectionGroupEnd properties are used to retrieve groups of selected items.

See Also SftTree Object | Object Hierarchy


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