共用方式為


ITextStructureNavigatorProvider 介面

為指定的 ITextBuffer 取得 ITextStructureNavigator

命名空間:  Microsoft.VisualStudio.Text.Operations
組件:  Microsoft.VisualStudio.Text.Logic (在 Microsoft.VisualStudio.Text.Logic.dll 中)

語法

'宣告
Public Interface ITextStructureNavigatorProvider
public interface ITextStructureNavigatorProvider
public interface class ITextStructureNavigatorProvider
type ITextStructureNavigatorProvider =  interface end
public interface ITextStructureNavigatorProvider

ITextStructureNavigatorProvider 類型會公開下列成員。

方法

  名稱 描述
公用方法 CreateTextStructureNavigator 建立一個新ITextStructureNavigator為指定ITextBuffer

回頁首

備註

這是將 MEF 元件組件中,並應匯出具有下列屬性:

[Export(NameSource=typeof(ITextStructureNavigatorProvider))]

您必須提供至少一個ContentTypeAttribute來指定適當的內容類型。

您已實作時,請使用這個提供者ITextStructureNavigator內容或語言中,以便提供者會建立正確類型的 [導覽]。 您可以匯入ITextStructureNavigatorSelectorService以取得特定的內容類型中的巡覽。

範例

如需如何使用 [導覽] 並巡覽提供者的範例,請參閱逐步解說: 顯示智慧標籤

請參閱

參考

Microsoft.VisualStudio.Text.Operations 命名空間