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
- spans
Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The spans to visit.
Return Value
Type: System.Collections.Generic.IEnumerable<ITagSpan<T>>
A ITagSpan<T> for each tag.
Implements
ITagger<T>.GetTags(NormalizedSnapshotSpanCollection)
.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.