SimpleTagger<T>.GetTaggedSpans(SnapshotSpan) 方法

定义

获取与给定 SnapshotSpan相交的标记跨度。

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Tagging::TrackingTagSpan<T> ^> ^ GetTaggedSpans(Microsoft::VisualStudio::Text::SnapshotSpan span);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Tagging.TrackingTagSpan<T>> GetTaggedSpans (Microsoft.VisualStudio.Text.SnapshotSpan span);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Text.Tagging.SimpleTagger<>+<GetTaggedSpans>d__12))]
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Tagging.TrackingTagSpan<T>> GetTaggedSpans (Microsoft.VisualStudio.Text.SnapshotSpan span);
member this.GetTaggedSpans : Microsoft.VisualStudio.Text.SnapshotSpan -> seq<Microsoft.VisualStudio.Text.Tagging.TrackingTagSpan<'T>>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Text.Tagging.SimpleTagger<>+<GetTaggedSpans>d__12))>]
member this.GetTaggedSpans : Microsoft.VisualStudio.Text.SnapshotSpan -> seq<Microsoft.VisualStudio.Text.Tagging.TrackingTagSpan<'T>>
Public Function GetTaggedSpans (span As SnapshotSpan) As IEnumerable(Of TrackingTagSpan(Of T))
Public Iterator Function GetTaggedSpans (span As SnapshotSpan) As IEnumerable(Of TrackingTagSpan(Of T))

参数

span
SnapshotSpan

要使用的 SnapshotSpan

返回

与给定范围相交的对象集 TrackingTagSpan<T> ,按顺序排列。

属性

适用于