使用英语阅读

通过


IMappingTagSpan<T> Interface

Associates an ITag with a specified IMappingSpan.

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

Syntax

public interface IMappingTagSpan<out T>
where T : ITag

Type Parameters

  • out T
    The type, which must be a subtype of ITag.

    This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

The IMappingTagSpan<T> type exposes the following members.

Properties

  Name Description
Public property Span Gets the mapping span for this tag.
Public property Tag Gets the tag located in this span.

Top

Remarks

Use MappingTagSpan<T> as the implementation of this interface.

See Also

Reference

Microsoft.VisualStudio.Text.Tagging Namespace