创建构成指定 ITextSnapshotLine 的文本和修饰元素的序列。
命名空间: Microsoft.VisualStudio.Text.Formatting
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
Function CreateTextAndAdornmentCollection ( _
topLine As ITextSnapshotLine, _
sourceTextSnapshot As ITextSnapshot _
) As ITextAndAdornmentCollection
ITextAndAdornmentCollection CreateTextAndAdornmentCollection(
ITextSnapshotLine topLine,
ITextSnapshot sourceTextSnapshot
)
ITextAndAdornmentCollection^ CreateTextAndAdornmentCollection(
ITextSnapshotLine^ topLine,
ITextSnapshot^ sourceTextSnapshot
)
abstract CreateTextAndAdornmentCollection :
topLine:ITextSnapshotLine *
sourceTextSnapshot:ITextSnapshot -> ITextAndAdornmentCollection
function CreateTextAndAdornmentCollection(
topLine : ITextSnapshotLine,
sourceTextSnapshot : ITextSnapshot
) : ITextAndAdornmentCollection
参数
topLine
类型:Microsoft.VisualStudio.Text.ITextSnapshotLine要构成序列的 ITextSnapshotLine。
sourceTextSnapshot
类型:Microsoft.VisualStudio.Text.ITextSnapshot对应于 topLineTopBuffer 的 ITextSnapshot 。
返回值
类型:Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentCollection
ISequenceElement 对象的规范化集合,这些对象包含文本和修饰元素。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。