共用方式為


IFormattedLineSource.FormatLineInVisualBuffer 方法

格式化 ITextSnapshotLine 中的文字和裝飾。

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

語法

'宣告
Function FormatLineInVisualBuffer ( _
    visualLine As ITextSnapshotLine _
) As Collection(Of IFormattedLine)
Collection<IFormattedLine> FormatLineInVisualBuffer(
    ITextSnapshotLine visualLine
)
Collection<IFormattedLine^>^ FormatLineInVisualBuffer(
    ITextSnapshotLine^ visualLine
)
abstract FormatLineInVisualBuffer : 
        visualLine:ITextSnapshotLine -> Collection<IFormattedLine> 
function FormatLineInVisualBuffer(
    visualLine : ITextSnapshotLine
) : Collection<IFormattedLine>

參數

傳回值

類型:Collection<IFormattedLine>
該行的格式化文字。

備註

IFormattedLine物件是IDisposable ,必須明確處置。 提供ITextSnapshotLine因為視覺項目習慣生活在該緩衝區中,必須屬於的視覺的緩衝區,快照集。

.NET Framework 安全性

請參閱

參考

IFormattedLineSource 介面

Microsoft.VisualStudio.Text.Formatting 命名空間