Share via


NewSpanMapping Structure

Used to create a new span mapping.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Public Structure NewSpanMapping
public struct NewSpanMapping
public value class NewSpanMapping
[<Sealed>]
type NewSpanMapping =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The NewSpanMapping type exposes the following members.

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Fields

  Name Description
Public field tspSpans Describes the two spans that are to be mapped to each other.
Public field varUserData Any data supplied by the user.

Top

Remarks

COM Signature

From singlefileeditor.idl:

typedef struct _tag_NewSpanMapping {
    TextSpanPair tspSpans;
    VARIANT      varUserData; 
} NewSpanMapping;

This structure is used in the IVsEnumBufferCoordinatorSpans interface and is returned by a call to the Next method. This structure is also passed to the SetSpanMappings method in the IVsTextBufferCoordinator interface.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace