ITreeItemNavigator Interface
Provides the base requirements for an object that can navigate a tree of items.
public interface ITreeItemNavigator
Properties
CurrentItem
Gets the current item.
Depth
Gets the item depth.
Methods
GoToCommonAncestor(Object)
Moves to the common ancestor item of CurrentItem and the specified other item.
bool GoToCommonAncestor(object otherItem)
Parameter | Type | Description |
---|---|---|
otherItem | Object | The other item. |
Returns
- Boolean:
true
if a common ancestor was found, which could be the same as CurrentItem prior to method invocation; otherwise,false
.
GoToFirstChild()
Moves to the first child item.
GoToFirstVisible()
Moves to the first visible item.
GoToLastVisible()
Moves to the last visible item.
GoToNextSibling()
Moves to the next sibling item.
GoToNextVisible()
Moves to the next visible item.
GoToParent()
Moves to the parent item.
GoToPreviousSibling()
Moves to the previous sibling item.
GoToPreviousVisible()
Moves to the previous visible item.