Freigeben über


IFormattedLineSource.FormatLineInVisualBuffer-Methode

Formatiert den Text und die Zusatzelemente in einer ITextSnapshotLine.

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

Syntax

'Declaration
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>

Parameter

Rückgabewert

Typ: Collection<IFormattedLine>
Der formatierte Text für diese Zeile.

Hinweise

IFormattedLine-Objekte sind IDisposable und müssen explizit freigegeben werden. Der angegebene ITextSnapshotLine muss der Momentaufnahme des visuellen puffers gehören, da visuelle Elemente in diesem Puffer leben.

.NET Framework-Sicherheit

Siehe auch

Referenz

IFormattedLineSource Schnittstelle

Microsoft.VisualStudio.Text.Formatting-Namespace