IFormattedLineSource.FormatLineInVisualBuffer(ITextSnapshotLine) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
格式化中的文本和修饰 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
要设置格式的行。
返回
该行的格式化文本。
注解
IFormattedLine 对象为 IDisposable 。 调用方必须在返回的行上显式调用 Dispose () 。
提供的 ITextSnapshotLine 必须属于视觉对象缓冲区的快照,因为视觉对象显示在该缓冲区中。