ITextAndAdornmentSequencer::CreateTextAndAdornmentCollection Method (SnapshotSpan, ITextSnapshot^)
Visual Studio 2015
Creates a sequence of text and adornment elements that compose the specified SnapshotSpan.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
ITextAndAdornmentCollection^ CreateTextAndAdornmentCollection( SnapshotSpan topSpan, ITextSnapshot^ sourceTextSnapshot )
Parameters
- topSpan
-
Type:
Microsoft.VisualStudio.Text::SnapshotSpan
The SnapshotSpan in the TopBuffer to sequence.
- sourceTextSnapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The ITextSnapshot of the SourceBuffer that corresponds to topSpan.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting::ITextAndAdornmentCollection^A normalized collection of ISequenceElement objects that contain the text and adornment elements.
Show: