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
visualLine
Typ: Microsoft.VisualStudio.Text.ITextSnapshotLineDie zu formatierende Zeile.
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
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.