Skip to content

PreviousSiblingItem - TreeView

Returns the item handle for the previous sibling item

Type: Property
Access: Read-Only
Data Type: Handle
Parameters: None

Parameters

Parameter Type Description
hItem Handle The item handle

Syntax

Property Handle PreviousSiblingItem
Access Type Syntax
Read Access: Get PreviousSiblingItem to HandleVariable

Description

The PreviousSiblingItem property returns the item handle of the next sibling item of hItem. Returns 0 if no previous sibling item exists.

Sibling items are defined as items with the same parent. So, for example, if you added a parent item of Food then added two child items to it as Cake and Steak, the PreviousSiblingItem of Steak would be Cake; Cake does not have any previous sibling, while Food does not have any siblings at all, just children.