ITextAndAdornmentSequencer.CreateTextAndAdornmentCollection Method (ITextSnapshotLine, ITextSnapshot)
Creates a sequence of text and adornment elements that compose the specified ITextSnapshotLine.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
声明
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
Parameters
- topLine
Type: Microsoft.VisualStudio.Text.ITextSnapshotLine
The ITextSnapshotLine to sequence.
- sourceTextSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The ITextSnapshot of the TopBuffer that corresponds to topLine.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentCollection
A normalized collection of ISequenceElement objects that contain the text and adornment elements.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ITextAndAdornmentSequencer Interface