共用方式為


IFormattedTextSourceFactoryService 介面

建立格式化文字來源。

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

語法

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

方法

  名稱 描述
公用方法 Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, ITextAndAdornmentSequencer, IClassificationFormatMap) 針對指定的檢視組態建立 IFormattedLineSource
公用方法 Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, IClassifier, ITextAndAdornmentSequencer, IClassificationFormatMap) 針對指定的檢視組態建立 IFormattedLineSource
公用方法 Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, IClassifier, ITextAndAdornmentSequencer, IClassificationFormatMap, Boolean) 針對指定的檢視組態建立 IFormattedLineSource

回頁首

備註

這是 MEF 元件的組件,並應該匯入,如下所示:

[Import] IFormattedTextSourceFactoryService factory = null;

格式設定的相關資訊,請參閱 「 格式化的文字 」 區段中的在 [編輯器]

請參閱

參考

Microsoft.VisualStudio.Text.Formatting 命名空間