Compartir a través de


TagSpan<T> Constructor

Initializes a new instance of a TagSpan<T> with the specified snapshot span and tag.

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

Syntax

'Declaración
Public Sub New ( _
    span As SnapshotSpan, _
    tag As T _
)
public TagSpan(
    SnapshotSpan span,
    T tag
)
public:
TagSpan(
    SnapshotSpan span, 
    T tag
)
new : 
        span:SnapshotSpan * 
        tag:'T -> TagSpan
public function TagSpan(
    span : SnapshotSpan, 
    tag : T
)

Parameters

  • tag
    Type: T
    The tag associated with the span.

Exceptions

Exception Condition
ArgumentNullException

tag is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

TagSpan<T> Class

Microsoft.VisualStudio.Text.Tagging Namespace