ProjectItem.ExpandView 方法

定义

展开 解决方案资源管理器 的视图以显示项目项。

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 ()
属性

示例

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  

注解

使用此方法展开 解决方案资源管理器 中的视图以在树视图中显示项目项。

适用于