This documentation is archived and is not being maintained.

IVsLiteTree.VisibleItemCount Method

Returns the number of items displayed.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int VisibleItemCount (
	out uint pCount
int VisibleItemCount (
	/** @attribute OutAttribute() */ /** @ref */ UInt32 pCount
JScript does not support passing value-type arguments by reference.



[out] Pointer to an integer. The number of visible items in the tree list.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.


From vsshell.idl:

HRESULT IVsLiteTree::VisibleItemCount(
   [out] ULONG *pCount