Partager via


IFormattedLineSource.FormatLineInVisualBuffer(ITextSnapshotLine) Method

Definition

Formats the text and adornments in a ITextSnapshotLine.

public:
 System::Collections::ObjectModel::Collection<Microsoft::VisualStudio::Text::Formatting::IFormattedLine ^> ^ FormatLineInVisualBuffer(Microsoft::VisualStudio::Text::ITextSnapshotLine ^ visualLine);
public System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Text.Formatting.IFormattedLine> FormatLineInVisualBuffer (Microsoft.VisualStudio.Text.ITextSnapshotLine visualLine);
abstract member FormatLineInVisualBuffer : Microsoft.VisualStudio.Text.ITextSnapshotLine -> System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Text.Formatting.IFormattedLine>
Public Function FormatLineInVisualBuffer (visualLine As ITextSnapshotLine) As Collection(Of IFormattedLine)

Parameters

visualLine
ITextSnapshotLine

The line to format.

Returns

The formatted text for that line.

Remarks

IFormattedLine objects are IDisposable. The caller must explicitly call Dispose() on the returned lines when they are done with them.

The supplied ITextSnapshotLine must belong to the snapshot of the visual buffer, since visuals live on that buffer.

Applies to