ITextAndAdornmentSequencer.CreateTextAndAdornmentCollection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| CreateTextAndAdornmentCollection(ITextSnapshotLine, ITextSnapshot) |
创建组成指定的文本和修饰元素的序列 ITextSnapshotLine 。 |
| CreateTextAndAdornmentCollection(SnapshotSpan, ITextSnapshot) |
创建组成指定的文本和修饰元素的序列 SnapshotSpan 。 |
CreateTextAndAdornmentCollection(ITextSnapshotLine, ITextSnapshot)
创建组成指定的文本和修饰元素的序列 ITextSnapshotLine 。
public:
Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentCollection ^ CreateTextAndAdornmentCollection(Microsoft::VisualStudio::Text::ITextSnapshotLine ^ topLine, Microsoft::VisualStudio::Text::ITextSnapshot ^ sourceTextSnapshot);
public Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentCollection CreateTextAndAdornmentCollection (Microsoft.VisualStudio.Text.ITextSnapshotLine topLine, Microsoft.VisualStudio.Text.ITextSnapshot sourceTextSnapshot);
abstract member CreateTextAndAdornmentCollection : Microsoft.VisualStudio.Text.ITextSnapshotLine * Microsoft.VisualStudio.Text.ITextSnapshot -> Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentCollection
Public Function CreateTextAndAdornmentCollection (topLine As ITextSnapshotLine, sourceTextSnapshot As ITextSnapshot) As ITextAndAdornmentCollection
参数
- topLine
- ITextSnapshotLine
ITextSnapshotLine TopBuffer To 序列中的。
- sourceTextSnapshot
- ITextSnapshot
对应于 topLine 的的 ITextSnapshot SourceBuffer 。
返回
对象的规范化集合 ISequenceElement ,其中包含文本和修饰元素。
适用于
CreateTextAndAdornmentCollection(SnapshotSpan, ITextSnapshot)
创建组成指定的文本和修饰元素的序列 SnapshotSpan 。
public:
Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentCollection ^ CreateTextAndAdornmentCollection(Microsoft::VisualStudio::Text::SnapshotSpan topSpan, Microsoft::VisualStudio::Text::ITextSnapshot ^ sourceTextSnapshot);
public Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentCollection CreateTextAndAdornmentCollection (Microsoft.VisualStudio.Text.SnapshotSpan topSpan, Microsoft.VisualStudio.Text.ITextSnapshot sourceTextSnapshot);
abstract member CreateTextAndAdornmentCollection : Microsoft.VisualStudio.Text.SnapshotSpan * Microsoft.VisualStudio.Text.ITextSnapshot -> Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentCollection
Public Function CreateTextAndAdornmentCollection (topSpan As SnapshotSpan, sourceTextSnapshot As ITextSnapshot) As ITextAndAdornmentCollection
参数
- topSpan
- SnapshotSpan
SnapshotSpan TopBuffer To 序列中的。
- sourceTextSnapshot
- ITextSnapshot
对应于 topSpan 的的 ITextSnapshot SourceBuffer 。
返回
对象的规范化集合 ISequenceElement ,其中包含文本和修饰元素。