IOutliningManager 接口

提供大纲显示功能。

命名空间:  Microsoft.VisualStudio.Text.Outlining
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
Public Interface IOutliningManager _
    Inherits IDisposable
public interface IOutliningManager : IDisposable
public interface class IOutliningManager : IDisposable
type IOutliningManager =  
    interface 
        interface IDisposable 
    end
public interface IOutliningManager extends IDisposable

IOutliningManager 类型公开以下成员。

属性

  名称 说明
公共属性 Enabled 确定是否已启用大纲显示。

页首

方法

  名称 说明
公共方法 CollapseAll 折叠与指定谓词在指定范围的所有区域。
公共方法 Dispose 执行与释放或重置非托管资源关联的应用程序定义的任务。 (继承自 IDisposable。)
公共方法 Expand 展开可折叠范围。
公共方法 ExpandAll 展开与指定谓词在指定范围的所有区域。
公共方法 GetAllRegions(NormalizedSnapshotSpanCollection) 获取范围相交的特定集合的所有区域,它们是否已折叠。
公共方法 GetAllRegions(SnapshotSpan) 获取与给定范围相交的所有区域,而不管这些区域是否已折叠。
公共方法 GetAllRegions(NormalizedSnapshotSpanCollection, Boolean) 获取范围相交的特定集合的所有区域,它们是否已折叠。
公共方法 GetAllRegions(SnapshotSpan, Boolean) 获取与给定范围相交的所有区域,而不管这些区域是否已折叠。
公共方法 GetCollapsedRegions(NormalizedSnapshotSpanCollection) 获取范围相交的特定集合的所有折叠区域。
公共方法 GetCollapsedRegions(SnapshotSpan) 获取与给定范围相交的所有折叠区域。
公共方法 GetCollapsedRegions(NormalizedSnapshotSpanCollection, Boolean) 获取范围相交的特定集合的所有折叠区域。
公共方法 GetCollapsedRegions(SnapshotSpan, Boolean) 获取与给定范围相交的所有折叠区域。
公共方法 TryCollapse 尝试折叠给定区域。

页首

事件

  名称 说明
公共事件 OutliningEnabledChanged 当已启用或禁用大纲显示时发生。
公共事件 RegionsChanged ,当在中的更改将相应 elision 缓冲区,的 ICollapsible 区域发生。
公共事件 RegionsCollapsed ,当 ICollapsible 折叠区域,发生。
公共事件 RegionsExpanded 当展开 ICollapsed 区域时发生。

页首

备注

采用 SnapshotSpan 对象的所有方法是编辑缓冲区中的范围在视图的视图模型。 此缓冲区可以从 TextBuffer 属性来检索。 IOutliningManagerService提供此大纲显示管理器。

请参阅

参考

Microsoft.VisualStudio.Text.Outlining 命名空间