This documentation is archived and is not being maintained.


Controls the state or the appearance of items within a hierarchy, or the hierarchy itself.

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

public enum EXPANDFLAGS
/** @attribute FlagsAttribute() */ 
public enum EXPANDFLAGS
public enum EXPANDFLAGS

 Member nameDescription
EXPF_AddCutHighlightItemProvides Cut highlight feedback to an additional item, without removing the Cut highlighting from other items. 
EXPF_AddSelectItemAdds an item to a multiple selection. This is equivalent to pressing the CTRL key and selecting an item with the mouse. 
EXPF_BoldItemBolds the selected item. 
EXPF_CollapseFolderCollapses a single folder. 
EXPF_CutHighlightItemHierarchy item has Cut highlighting, which is a dim, grayed-out appearance indicating a pending Cut operation. 
EXPF_EditItemLabelSets Edit mode for the item label. Use to programmatically set Edit mode. 
EXPF_ExpandFolderExpands a single folder. 
EXPF_ExpandFolderRecursivelyExpands a folder and all of its child folders, recursively. 
EXPF_ExpandParentsToShowItemExpands parent folders to show the item. 
EXPF_ExtendSelectItemExtends the selection into a multiple selection. This is equivalent to pressing the SHIFT key and selecting multiple items with the mouse. 
EXPF_SelectItemSelects a single item. This is equivalent to selecting the item with the mouse and removing the selection feedback from any previously selected items. 
EXPF_UnBoldItemRemoves bold font from an item. 
EXPF_UnCutHighlightItemCut highlighting is removed from a hierarchy item. 
EXPF_UnSelectItemDeselects an item. 

COM Signature

From vsshell.idl:

These enumerations can be used for individual items, multiple items, or for the hierarchy alone. To specify the hierarchy, set the itemid parameter to VSITEMID_ROOT.