SimpleTagger<T>.GetTaggedSpans(SnapshotSpan) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取与给定 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> ,按顺序排列。
- 属性