Partager via


SimpleTagger<T>.GetTags Method

Gets all the tags that overlap the spans in the specified snapshot of the desired type.

Namespace:  Microsoft.VisualStudio.Text.Tagging
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Déclaration
Public Function GetTags ( _
    spans As NormalizedSnapshotSpanCollection _
) As IEnumerable(Of ITagSpan(Of T))
public IEnumerable<ITagSpan<T>> GetTags(
    NormalizedSnapshotSpanCollection spans
)
public:
virtual IEnumerable<ITagSpan<T>^>^ GetTags(
    NormalizedSnapshotSpanCollection^ spans
) sealed
abstract GetTags : 
        spans:NormalizedSnapshotSpanCollection -> IEnumerable<ITagSpan<'T>> 
override GetTags : 
        spans:NormalizedSnapshotSpanCollection -> IEnumerable<ITagSpan<'T>> 
public final function GetTags(
    spans : NormalizedSnapshotSpanCollection
) : IEnumerable<ITagSpan<T>>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ITagSpan<T>>
A ITagSpan<T> for each tag.

Implements

ITagger<T>.GetTags(NormalizedSnapshotSpanCollection)

.NET Framework Security

See Also

Reference

SimpleTagger<T> Class

Microsoft.VisualStudio.Text.Tagging Namespace