VsTextImageClass 类

定义

支持文本字符串匹配。

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.ClassInterface(0)>]
[<System.Runtime.InteropServices.Guid("66B88230-2363-4992-B740-B0450A6F51CA")>]
[<System.Runtime.InteropServices.TypeLibType(2)>]
type VsTextImageClass = class
    interface IVsTextImage
    interface VsTextImage
Public Class VsTextImageClass
Implements VsTextImage
继承
VsTextImageClass
属性
实现

注解

不能使用关键字创建此类的实例 new 。 相反,您必须获取 ILocalRegistry 对象并创建具有的对象 CreateInstance 。 MPF 将此方法包装在 CreateInstance 中。

构造函数

VsTextImageClass()

创建该类的一个新实例。

方法

AdviseTextImageEvents(IVsTextImageEvents, UInt32)

注册环境以接收文本图像更改的通知。

GetCharSize(Int32)

返回文本图像中的字符数。

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

提供对文本缓冲区的直接、面向行的访问。

GetLineLength(Int32, Int32)

返回行的长度。

GetLineSize(Int32)

返回文本图像中的行数。

GetOffsetOfTextAddress(TextAddress, Int32)

返回给定文本地址的缓冲区地址。

GetSpanLength(TextSpan[], Int32)

返回文本跨距中的字符数。

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

返回文本范围的文本。

GetTextAddressOfOffset(Int32, TextAddress[])

返回给定缓冲区地址的文本地址。

GetTextBSTR(TextSpan[], String)

以 BSTR 形式返回文本跨度的文本

LockImage(UInt32)

通知文本图像正在使用。

ReleaseLine(LINEDATAEX[])

释放 LINEDATAEX 结构。

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

文本跨距替换通知。

UnadviseTextImageEvents(UInt32)

取消环境的注册,以接收文本图像更改的通知。

UnlockImage(UInt32)

通知文本图像未被使用。

适用于