This documentation is archived and is not being maintained.

ExpandView Method

Visual Studio .NET 2003

Expands the view of Project Explorer to show project items.

[Visual Basic .NET]
Public Sub ExpandView() 
[Visual Basic 6]
Sub ExpandView() 
[C++]
HRESULT __stdcall ExpandView();
[C#]
void ExpandView();
[JScript .NET]
public function ExpandView()

Remarks

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

Example

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

See Also

Applies To: ProjectItem Object

Show: