ProjectItem.ExpandView 方法

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

命名空间:  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 安全性

请参见

参考

ProjectItem 接口

EnvDTE 命名空间

其他资源

控制项目和解决方案