IVsLiteTree Interface


Represents a lightweight tree control. Used, for example, in the Object Browser and Find Symbol dialogs.

public interface IVsLiteTree


AdviseTreeEvents(IVsLiteTreeEvents, UInt32)

Registers an IVsLiteTreeEvents interface and thus adds an events listener to the listener list.

CloneTreeAbsolute(UInt32, IVsLiteTree)

Clones the tree structure starting a specific node.


Indicates whether or not to redraw the tree.

DeleteItems(IVsLiteTreeList, UInt32, UInt32)

Used to delete specific items without realigning the tree by calling ReAlign(IVsLiteTreeList).

EnableTreeEvents(UInt32, Int32)

Enables reporting of events on the tree.

EnumAbsoluteIndices(IVsLiteTreeList, UInt32, IntPtr, UInt32)

Enumerates the items in a tree list beginning at a particular index.

EnumOrderedListItems(UInt32, IVsLiteTreeList, UInt32, UInt32, UInt32)

Enumerate the complete tree list a sub-tree at a time.

GetDescendantItemCount(UInt32, UInt32)

Returns the number of descendants of a given node.

GetExpandableAbsolute(UInt32, Int32)

Determines whether or not you can expand an item.

GetExpandedAbsolute(UInt32, Int32)

Determines whether an item is expanded.

GetExpandedListAbsolute(UInt32, UInt32, IVsLiteTreeList)

Returns the expanded list at the given index, if any.


Retrieves the tree list options.

GetItemInfoAbsolute(UInt32, IVsLiteTreeList, UInt32, UInt32)

Retrieves the parent list of a node.

GetOffsetFromParent(UInt32, UInt32, UInt32)

Returns the offset between the index of a parent node and a relative index.

GetParentIndexAbsolute(UInt32, UInt32)

Gets the next visible expanded list.


Initializes the tree using specified options.

InsertItems(IVsLiteTreeList, UInt32, UInt32)

Insert items without performing realignment.

QueryItemVisible(UInt32, Int32)

Indicates whether an item is visible.


Realign part of the list designated by an IVsLiteTreeList instance.


Refresh the tree by calling Microsoft.VisualStudio.ManagedInterfaces.Publish.IPublishProperties.UpdateRequired as necessary.


Set or reset redrawing of the tree list.

SetRoot(IVsLiteTreeList, IVsLiteTree)

Sets the root object of the tree.

ToggleExpansionAbsolute(UInt32, Int32, Int32)

Expands an item by selected by absolute index.

ToggleStateAbsolute(UInt32, UInt32)

Toggles the state of an item. An item may have more than two states.


Unregisters an IVsLiteTreeEvents interface and thus removes an events listener from the list.


Returns the number of items displayed.

Applies to