TagSpan<T>(SnapshotSpan, T) Constructor
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.
Initializes a new instance of a TagSpan<T> with the specified snapshot span and tag.
public:
TagSpan(Microsoft::VisualStudio::Text::SnapshotSpan span, T tag);
TagSpan(Microsoft::VisualStudio::Text::SnapshotSpan span, T tag);
public TagSpan (Microsoft.VisualStudio.Text.SnapshotSpan span, T tag);
new Microsoft.VisualStudio.Text.Tagging.TagSpan<'T (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)> : Microsoft.VisualStudio.Text.SnapshotSpan * 'T -> Microsoft.VisualStudio.Text.Tagging.TagSpan<'T (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)>
Public Sub New (span As SnapshotSpan, tag As T)
Parameters
- span
- SnapshotSpan
The SnapshotSpan with which to associate the tag.
- tag
- T
The tag associated with the span.
Exceptions
tag
is null.