共用方式為


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 命名空間