STree.SelectChanged Event
It is an event that occurs in the item selection operation of STree.
The following child objects are attached to the Event object.
| Type | Name | Explanation |
|---|---|---|
| STreeItem | item | STreeItem object that is an accessor to the selected item |
If an item in the tree is selected, item will contain the accessors for the selected item. If no item is selected, item will contain an invalid accessor (Id property 0).
You can also get the selected position with the SelectedItem property, but see item to make sure you identify the item where the event occurred. Since the event goes through the event queue, it may point to an item that is different from the item passed to the OnSelectChanged event handler and the SelectedItem property at that time.