IFormattedLineSource.FormatLineInVisualBuffer(ITextSnapshotLine) 方法

定义

格式化中的文本和修饰 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)

参数

visualLine
ITextSnapshotLine

要设置格式的行。

返回

Collection<IFormattedLine>

该行的格式化文本。

注解

IFormattedLine 对象为 IDisposable 。 调用方必须在返回的行上显式调用 Dispose () 。

提供的 ITextSnapshotLine 必须属于视觉对象缓冲区的快照,因为视觉对象显示在该缓冲区中。

适用于