ITextAndAdornmentSequencer.CreateTextAndAdornmentCollection 方法 (SnapshotSpan, ITextSnapshot)

创建构成指定 SnapshotSpan 的文本和修饰元素的序列。

命名空间:  Microsoft.VisualStudio.Text.Formatting
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
Function CreateTextAndAdornmentCollection ( _
    topSpan As SnapshotSpan, _
    sourceTextSnapshot As ITextSnapshot _
) As ITextAndAdornmentCollection
ITextAndAdornmentCollection CreateTextAndAdornmentCollection(
    SnapshotSpan topSpan,
    ITextSnapshot sourceTextSnapshot
)
ITextAndAdornmentCollection^ CreateTextAndAdornmentCollection(
    SnapshotSpan topSpan, 
    ITextSnapshot^ sourceTextSnapshot
)
abstract CreateTextAndAdornmentCollection : 
        topSpan:SnapshotSpan * 
        sourceTextSnapshot:ITextSnapshot -> ITextAndAdornmentCollection
function CreateTextAndAdornmentCollection(
    topSpan : SnapshotSpan, 
    sourceTextSnapshot : ITextSnapshot
) : ITextAndAdornmentCollection

参数

返回值

类型:Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentCollection
ISequenceElement 对象的规范化集合,这些对象包含文本和修饰元素。

.NET Framework 安全性

请参阅

参考

ITextAndAdornmentSequencer 接口

CreateTextAndAdornmentCollection 重载

Microsoft.VisualStudio.Text.Formatting 命名空间