共用方式為


EXPANDFLAGS Enum

Definition

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

This enumeration supports a bitwise combination of its member values.

public enum class EXPANDFLAGS
public enum class EXPANDFLAGS
enum EXPANDFLAGS
[System.Flags]
public enum EXPANDFLAGS
[<System.Flags>]
type EXPANDFLAGS = 
Public Enum EXPANDFLAGS
Inheritance
EXPANDFLAGS
Attributes

Fields

Name Value Description
EXPF_ExpandFolder 0

Expands a single folder.

EXPF_CollapseFolder 1

Collapses a single folder.

EXPF_ExpandFolderRecursively 2

Expands a folder and all of its child folders, recursively.

EXPF_ExpandParentsToShowItem 3

Expands parent folders to show the item.

EXPF_SelectItem 4

Selects a single item. This is equivalent to selecting the item with the mouse and removing the selection feedback from any previously selected items.

EXPF_BoldItem 5

Bolds the selected item.

EXPF_ExtendSelectItem 6

Extends the selection into a multiple selection. This is equivalent to pressing the SHIFT key and selecting multiple items with the mouse.

EXPF_AddSelectItem 7

Adds an item to a multiple selection. This is equivalent to pressing the CTRL key and selecting an item with the mouse.

EXPF_UnSelectItem 8

Deselects an item.

EXPF_UnBoldItem 9

Removes bold font from an item.

EXPF_CutHighlightItem 10

Hierarchy item has Cut highlighting, which is a dim, grayed-out appearance indicating a pending Cut operation.

EXPF_AddCutHighlightItem 11

Provides Cut highlight feedback to an additional item, without removing the Cut highlighting from other items.

EXPF_UnCutHighlightItem 12

Cut highlighting is removed from a hierarchy item.

EXPF_EditItemLabel 13

Sets Edit mode for the item label. Use to programmatically set Edit mode.

Remarks

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.

Applies to