展开**“解决方案资源管理器”**视图以显示项目项。
命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)
语法
声明
Sub ExpandView
void ExpandView()
void ExpandView()
abstract ExpandView : unit -> unit 
function 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
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。