다음을 통해 공유


ITextAndAdornmentSequencer.CreateTextAndAdornmentCollection Method

Definition

Overloads

CreateTextAndAdornmentCollection(ITextSnapshotLine, ITextSnapshot)

Creates a sequence of text and adornment elements that compose the specified ITextSnapshotLine.

CreateTextAndAdornmentCollection(SnapshotSpan, ITextSnapshot)

Creates a sequence of text and adornment elements that compose the specified SnapshotSpan.

CreateTextAndAdornmentCollection(ITextSnapshotLine, ITextSnapshot)

Creates a sequence of text and adornment elements that compose the specified 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

Parameters

topLine
ITextSnapshotLine

The ITextSnapshotLine in the TopBuffer to sequence.

sourceTextSnapshot
ITextSnapshot

The ITextSnapshot of the SourceBuffer that corresponds to topLine.

Returns

A normalized collection of ISequenceElement objects that contain the text and adornment elements.

Applies to

CreateTextAndAdornmentCollection(SnapshotSpan, ITextSnapshot)

Creates a sequence of text and adornment elements that compose the specified 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

Parameters

topSpan
SnapshotSpan

The SnapshotSpan in the TopBuffer to sequence.

sourceTextSnapshot
ITextSnapshot

The ITextSnapshot of the SourceBuffer that corresponds to topSpan.

Returns

A normalized collection of ISequenceElement objects that contain the text and adornment elements.

Applies to