UIHierarchyItems.Expanded (Propiedad)

Establece u obtiene si un nodo de la jerarquía está expandido.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

'Declaración
Property Expanded As Boolean
bool Expanded { get; set; }
property bool Expanded {
    bool get ();
    void set (bool value);
}
abstract Expanded : bool with get, set
function get Expanded () : boolean
function set Expanded (value : boolean)

Valor de propiedad

Tipo: System.Boolean
Valor Boolean que indica true si el nodo está expandido, false si no lo está.

Ejemplos

Sub ExpandedExample()
   Dim UIH As UIHierarchy = _
     DTE.Windows.Item(Constants.vsWindowKindMacroExplorer).Object
   Dim UIHItem As UIHierarchyItem = UIH.GetItem("Macros\Samples")

   UIHItem.Select(vsUISelectionType.vsUISelectionTypeSetCaret)
   If UIHItem.IsSelected = False Then
      If UIH.UIHierarchyItems.Expanded = True Then
         MsgBox("Node is expanded.")
      Else
         MsgBox("Node is not expanded.")
      End If
   End If
   UIH.SelectDown(vsUISelectionType.vsUISelectionTypeSelect, 2)
   UIH.DoDefaultAction()
   UIH.SelectDown(vsUISelectionType.vsUISelectionTypeSelect, 1)
   UIH.SelectUp(vsUISelectionType.vsUISelectionTypeExtend, 1)
End Sub

Seguridad de .NET Framework

Vea también

Referencia

UIHierarchyItems Interfaz

EnvDTE (Espacio de nombres)

Otros recursos

Cómo: Manipular vistas de árbol mediante UIHierarchy