IFormattedLineSource::FormatLineInVisualBuffer Method (ITextSnapshotLine^)

 

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)

Collection<IFormattedLine^>^ FormatLineInVisualBuffer(
	ITextSnapshotLine^ visualLine
)

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.

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.

Return to top
Show: