IFormattedLineSource.FormatLineInVisualBuffer Method

Formats the text and adornments in a ITextSnapshotLine.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

声明
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>

Parameters

Return Value

Type: System.Collections.ObjectModel.Collection<IFormattedLine>
The formatted text for that line.

Remarks

IFormattedLine objects are IDisposable and must be disposed explicitly. The supplied ITextSnapshotLine must belong to the snapshot of the visual buffer, since visuals live in that buffer.

.NET Framework Security

See Also

Reference

IFormattedLineSource Interface

Microsoft.VisualStudio.Text.Formatting Namespace