SimpleTagger<T>.GetTags(NormalizedSnapshotSpanCollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets all the tags that intersect the spans in the specified snapshot of the desired type.
public:
virtual System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Tagging::ITagSpan<T> ^> ^ GetTags(Microsoft::VisualStudio::Text::NormalizedSnapshotSpanCollection ^ spans);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Text.Tagging.SimpleTagger<>+<GetTags>d__14))]
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Tagging.ITagSpan<T>> GetTags (Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection spans);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Tagging.ITagSpan<T>> GetTags (Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection spans);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Text.Tagging.SimpleTagger<>+<GetTags>d__14))>]
abstract member GetTags : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection -> seq<Microsoft.VisualStudio.Text.Tagging.ITagSpan<'T>>
override this.GetTags : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection -> seq<Microsoft.VisualStudio.Text.Tagging.ITagSpan<'T>>
abstract member GetTags : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection -> seq<Microsoft.VisualStudio.Text.Tagging.ITagSpan<'T>>
override this.GetTags : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection -> seq<Microsoft.VisualStudio.Text.Tagging.ITagSpan<'T>>
Public Iterator Overridable NotOverridable Function GetTags (spans As NormalizedSnapshotSpanCollection) As IEnumerable(Of ITagSpan(Of T))
Public Function GetTags (spans As NormalizedSnapshotSpanCollection) As IEnumerable(Of ITagSpan(Of T))
Parameters
The spans to visit.
Returns
IEnumerable<ITagSpan<T>>
A ITagSpan<T> for each tag.
Implements
- Attributes