Export (0) Print
Expand All

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

The TextSpanAndCookie type exposes the following members.

  NameDescription
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.)
Top

  NameDescription
Public fieldCodeSpanA TextSpan object representing the span of embedded source code.
Public fieldulHTMLCookieIdentifies the line the code block starts on.
Top

COM Signature

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.
Show:
© 2014 Microsoft