共用方式為


IFormattedLineSource 介面

從文字快照產生已格式化行。

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

語法

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

IFormattedLineSource 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 BaseIndentation 為這個來源產生的所有行取得基底縮排 (以邏輯像素為單位)。
公用屬性 ColumnWidth 取得欄寬 (以像素為單位)。
公用屬性 DefaultTextProperties 取得TextRunProperties用來呈現未分類的文字。
公用屬性 LineHeight 取得行的表面的高度。
公用屬性 MaxAutoIndent 取得已換行之行的自動縮排上限。
公用屬性 SourceTextSnapshot 取得這個來源會用來提供格式化文字的來源文字快照。
公用屬性 TabSize 取得每個定位停駐點之間的空格數目。
公用屬性 TextAndAdornmentSequencer 取得這個來源使用的 ITextAndAdornmentSequencer
公用屬性 TextHeightAboveBaseline 取得在基準上方文字的表面的高度。
公用屬性 TextHeightBelowBaseline 取得文字低於基準的名義上的高度。
公用屬性 TopTextSnapshot 取得這個來源會用來提供格式化文字的頂端文字快照。
公用屬性 UseDisplayMode 決定是否要使用的格式子Display格式的文字。
公用屬性 WordWrapWidth 取得會用來將格式化文字打散為多行的寬度 (以邏輯像素為單位)。

回頁首

方法

  名稱 描述
公用方法 FormatLineInVisualBuffer 格式化 ITextSnapshotLine 中的文字和裝飾。

回頁首

備註

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

請參閱

參考

Microsoft.VisualStudio.Text.Formatting 命名空間