IVsLiteTreeList::ToggleState Method (UInt32, UInt32)
Visual Studio 2015
Tells the requested tree item to toggle its checked state if it has check boxes.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- index
-
Type:
System::UInt32
[in] Specifies the index of the tree list item of interest.
- ptscr
-
Type:
System::UInt32
[out] Pointer to the _VSTREESTATECHANGEREFRESH value.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsLiteTreeList::ToggleState(
[in] ULONG Index,
[out] VSTREESTATECHANGEREFRESH *ptscr
);
This method returns the state of the given tree list item. The item might have more than one state. The states are taken from the _VSTREESTATECHANGEREFRESH enumeration.
Show: