TextSpanAndCookie Structure

 

Used to represent a span of code embedded in a document.

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

public struct TextSpanAndCookie

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from ValueType.)

System_CAPS_pubmethodGetHashCode()

(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from ValueType.)

NameDescription
System_CAPS_pubfieldCodeSpan

A TextSpan object representing the span of embedded source code.

System_CAPS_pubfieldulHTMLCookie

Identifies the line the code block starts on.

From singlefileeditor.idl:

typedef struct _TEXTSPANANDCOOKIE {
    ULONG    ulHTMLCookie;
    TextSpan CodeSpan;
} TextSpanAndCookie;

This structure is used in the IVsEnumCodeBlocks interface and is returned by the Next method.

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

Return to top
Show: