ProjectItem.ExpandView Method

Definition

Expands the view of Solution Explorer to show project items.

public:
 void ExpandView();
public:
 void ExpandView();
void ExpandView();
[System.Runtime.InteropServices.DispId(107)]
public void ExpandView ();
[<System.Runtime.InteropServices.DispId(107)>]
abstract member ExpandView : unit -> unit
Public Sub ExpandView ()
Attributes

Examples

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  

Remarks

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

Applies to