Export (0) Print
Expand All

TextSpanPair Structure

Used to express two corresponding spans in two separate buffers.

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

public struct TextSpanPair

The TextSpanPair type exposes the following members.

Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)

Public fieldspan1A TextSpan object representing the first span.
Public fieldspan2A TextSpan object representing the second span.

COM Signature

From singlefileeditor.idl:

typedef struct _TEXTSPANPAIR {
    TextSpan span1;
    TextSpan span2;
} TextSpanPair;

This structure is used in the NewSpanMapping structure.

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