Udostępnij za pośrednictwem


VsTextImageClass Class

Definition

Supports text string matching.

public ref class VsTextImageClass : Microsoft::VisualStudio::TextManager::Interop::VsTextImage
[Windows::Foundation::Metadata::WebHostHidden]
class VsTextImageClass : Microsoft::VisualStudio::TextManager::Interop::VsTextImage
[System.Runtime.InteropServices.ClassInterface(0)]
[System.Runtime.InteropServices.Guid("66B88230-2363-4992-B740-B0450A6F51CA")]
[System.Runtime.InteropServices.TypeLibType(2)]
public class VsTextImageClass : Microsoft.VisualStudio.TextManager.Interop.VsTextImage
[System.Runtime.InteropServices.Guid("66B88230-2363-4992-B740-B0450A6F51CA")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public class VsTextImageClass : Microsoft.VisualStudio.TextManager.Interop.VsTextImage
[<System.Runtime.InteropServices.ClassInterface(0)>]
[<System.Runtime.InteropServices.Guid("66B88230-2363-4992-B740-B0450A6F51CA")>]
[<System.Runtime.InteropServices.TypeLibType(2)>]
type VsTextImageClass = class
    interface IVsTextImage
    interface VsTextImage
[<System.Runtime.InteropServices.Guid("66B88230-2363-4992-B740-B0450A6F51CA")>]
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type VsTextImageClass = class
    interface VsTextImage
    interface IVsTextImage
Public Class VsTextImageClass
Implements VsTextImage
Inheritance
VsTextImageClass
Attributes
Implements

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.

Constructors

VsTextImageClass()

Creates a new instance of the class.

Methods

AdviseTextImageEvents(IVsTextImageEvents, UInt32)

Registers the environment to receive notification of text image changes.

GetCharSize(Int32)

Returns the number of characters in the text image.

GetLine(UInt32, Int32, Int32, Int32, LINEDATAEX[])

Provides direct, line-oriented access to the text buffer.

GetLineLength(Int32, Int32)

Returns the length of a line.

GetLineSize(Int32)

Returns the number of lines in the text image.

GetOffsetOfTextAddress(TextAddress, Int32)

Return the buffer address of a given text address.

GetSpanLength(TextSpan[], Int32)

Returns the number of characters in a text span.

GetText(TextSpan[], Int32, UInt16[])

Returns the text of a text span.

GetTextAddressOfOffset(Int32, TextAddress[])

Returns the text address of a given buffer address.

GetTextBSTR(TextSpan[], String)

Returns the text of a text span as a BSTR

LockImage(UInt32)

Notifies that the text image is in use.

ReleaseLine(LINEDATAEX[])

Releases the LINEDATAEX structure.

Replace(UInt32, TextSpan[], Int32, String, TextSpan[])

Notification of a text span replacement.

UnadviseTextImageEvents(UInt32)

Cancels the environment's registration to receive notifications of text image changes.

UnlockImage(UInt32)

Notifies that the text image is not in use.

Applies to