Share via


ProjectItem.ExpandView-Methode

Erweitert die Ansicht des Projektmappen-Explorers, sodass die Projektelemente angezeigt werden.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Sub ExpandView
void ExpandView()
void ExpandView()
abstract ExpandView : unit -> unit 
function ExpandView()

Hinweise

Verwenden Sie diese Methode, um die Ansicht im Projektmappen-Explorer so zu erweitern, dass die Projektelemente in der Strukturansicht angezeigt werden.

Beispiele

Sub ExpandViewExample()
    Dim proj As Project
    Dim projitems As ProjectItems

    ' Reference the current solution and its projects and project items.
    proj = DTE.ActiveSolutionProjects(0)
    projitems = proj.ProjectItems

    ' Expand the first project to show all of its items.
    projitems.Item(1).ExpandView()
End Sub

.NET Framework-Sicherheit

Siehe auch

Referenz

ProjectItem Schnittstelle

EnvDTE-Namespace

Weitere Ressourcen

Steuern von Projekten und Projektmappen