IVsUIHierarchyWindow.ExpandItem(IVsUIHierarchy, UInt32, EXPANDFLAGS) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Controls the state or appearance of items in the hierarchy.
public:
int ExpandItem(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ pUIH, System::UInt32 itemid, Microsoft::VisualStudio::Shell::Interop::EXPANDFLAGS expf);
public:
int ExpandItem(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ pUIH, unsigned int itemid, Microsoft::VisualStudio::Shell::Interop::EXPANDFLAGS expf);
int ExpandItem(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy const & pUIH, unsigned int itemid, Microsoft::VisualStudio::Shell::Interop::EXPANDFLAGS expf);
public int ExpandItem (Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy pUIH, uint itemid, Microsoft.VisualStudio.Shell.Interop.EXPANDFLAGS expf);
abstract member ExpandItem : Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy * uint32 * Microsoft.VisualStudio.Shell.Interop.EXPANDFLAGS -> int
Public Function ExpandItem (pUIH As IVsUIHierarchy, itemid As UInteger, expf As EXPANDFLAGS) As Integer
Parameters
- pUIH
- IVsUIHierarchy
[in] IVsUIHierarchy to modify the appearance of.
- itemid
- UInt32
[in] Identifier of the item in the hierarchy. To change the appearance of the hierarchy itself, set itemid
to VSITEMID_ROOT. For a list of itemid
values, see VSITEMID
.
- expf
- EXPANDFLAGS
[in] Specifies the state or appearance of the hierarchy or items within the hierarchy, such as whether the hierarchy or item is expanded, highlighted, or shown in bold font. For a list of expf
values, see EXPANDFLAGS.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsUIHierarchyWindow::ExpandItem(
[in] IVsUIHierarchy* pUIH,
[in] VSITEMID itemid,
[in] EXPANDFLAGS expf
);
Use this method to expand, collapse, bold, or highlight specific items or the hierarchy root itself. Use GetItemState to retrieve the state of the hierarchy set by the ExpandItem
method.