Type | Description | |||
Variant | A long expression that indicates the position of item being selected, or a safe array that holds a collection of position of items being selected. |
The following VB sample selects the first item in the control:
Tree1.Items.SelectPos = 0
The following VB sample selects first two items:
Tree1.Items.SelectPos = Array(0, 1)
The following C++ sample selects the first item in the control:
m_tree.GetItems().SetSelectPos( COleVariant( long(0) ) );
The following VB.NET sample selects the first item in the control:
With AxTree1.Items .SelectPos = 0 End With
The following C# sample selects the first item in the control:
axTree1.Items.SelectPos = 0;
The following VFP sample selects the first item in the control:
with thisform.Tree1.Items .SelectPos = 0 endwith