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
'Dichiarazione
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
- visualLine
Type: Microsoft.VisualStudio.Text.ITextSnapshotLine
The line to format.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.