Udostępnij za pośrednictwem


ProjectItem.ExpandView Method

Expands the view of Solution Explorer to show project items.

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

Syntax

'Declaration
Sub ExpandView
'Usage
Dim instance As ProjectItem

instance.ExpandView()
void ExpandView()
void ExpandView()
function ExpandView()

Remarks

Use this method to expand the view in Solution Explorer to show project items in the tree view.

Examples

[Visual Basic]

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 Security

See Also

Reference

ProjectItem Interface

ProjectItem Members

EnvDTE Namespace

Other Resources

Controlling Projects and Solutions