ITextAndAdornmentSequencer.CreateTextAndAdornmentCollection 方法 (ITextSnapshotLine, ITextSnapshot)
建立文字和裝飾項目序列,以組成指定的 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.ITextSnapshotITextSnapshot的TopBuffer對應的topLine。
傳回值
類型:Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentCollection
包含文字和裝飾項目之 ISequenceElement 物件的標準化集合。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。