IFormattedLineSource.FormatLineInVisualBuffer(ITextSnapshotLine) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.