共用方式為


ISmartIndentProvider 介面

取得ISmartIndent的物件指定ITextView

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

語法

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

ISmartIndentProvider 類型會公開下列成員。

方法

  名稱 描述
公用方法 CreateSmartIndent 會建立ISmartIndent的指定ITextView

回頁首

備註

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

[Export(NameSource=typeof(ISmartIndentProvider))] 
[ContentType("some content type")] 

元件匯入程式必須提供一個以上的內容型別屬性,以指定適用的內容類型。

請參閱

參考

Microsoft.VisualStudio.Text.Editor 命名空間