Compartilhar via


VsTextImageClass Class

Supports text string matching.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsTextImageClass

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

Syntax

'Declaration
<GuidAttribute("66B88230-2363-4992-B740-B0450A6F51CA")> _
<ClassInterfaceAttribute()> _
Public Class VsTextImageClass _
    Implements IVsTextImage, VsTextImage
[GuidAttribute("66B88230-2363-4992-B740-B0450A6F51CA")]
[ClassInterfaceAttribute()]
public class VsTextImageClass : IVsTextImage, 
    VsTextImage
[GuidAttribute(L"66B88230-2363-4992-B740-B0450A6F51CA")]
[ClassInterfaceAttribute()]
public ref class VsTextImageClass : IVsTextImage, 
    VsTextImage
[<GuidAttribute("66B88230-2363-4992-B740-B0450A6F51CA")>]
[<ClassInterfaceAttribute()>]
type VsTextImageClass =  
    class 
        interface IVsTextImage 
        interface VsTextImage 
    end
public class VsTextImageClass implements IVsTextImage, VsTextImage

The VsTextImageClass type exposes the following members.

Constructors

  Name Description
Public method VsTextImageClass Creates a new instance of the class.

Top

Methods

  Name Description
Public method AdviseTextImageEvents Registers the environment to receive notification of text image changes.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetCharSize Returns the number of characters in the text image.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetLine Provides direct, line-oriented access to the text buffer.
Public method GetLineLength Returns the length of a line.
Public method GetLineSize Returns the number of lines in the text image.
Public method GetOffsetOfTextAddress Return the buffer address of a given text address.
Public method GetSpanLength Returns the number of characters in a text span.
Public method GetText Returns the text of a text span.
Public method GetTextAddressOfOffset Returns the text address of a given buffer address.
Public method GetTextBSTR Returns the text of a text span as a BSTR
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method LockImage Notifies that the text image is in use.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReleaseLine Releases the LINEDATAEX structure.
Public method Replace Notification of a text span replacement.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method UnadviseTextImageEvents Cancels the environment's registration to receive notifications of text image changes.
Public method UnlockImage Notifies that the text image is not in use.

Top

Remarks

You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

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