VsTextImage 接口

表示持久并 unpersisted 的图像。 由文本编辑器视图可见和可编辑的文本范围。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
<GuidAttribute("67068DC0-C069-11D2-936C-D714766E8B50")> _
Public Interface VsTextImage _
    Inherits IVsTextImage
[GuidAttribute("67068DC0-C069-11D2-936C-D714766E8B50")]
public interface VsTextImage : IVsTextImage
[GuidAttribute(L"67068DC0-C069-11D2-936C-D714766E8B50")]
public interface class VsTextImage : IVsTextImage
[<GuidAttribute("67068DC0-C069-11D2-936C-D714766E8B50")>]
type VsTextImage =  
    interface 
        interface IVsTextImage 
    end
public interface VsTextImage extends IVsTextImage

VsTextImage 类型公开以下成员。

方法

  名称 说明
公共方法 AdviseTextImageEvents 注册接收文本图像的通知该环境的更改。 (继承自 IVsTextImage。)
公共方法 GetCharSize 返回字符数在文本的图像。 (继承自 IVsTextImage。)
公共方法 GetLine 提供对文本缓冲区的直接, (可沿的访问。 (继承自 IVsTextImage。)
公共方法 GetLineLength 返回行的长度。 (继承自 IVsTextImage。)
公共方法 GetLineSize 返回的行数在文本的图像。 (继承自 IVsTextImage。)
公共方法 GetOffsetOfTextAddress 返回给定文本地址的缓冲区地址。 (继承自 IVsTextImage。)
公共方法 GetSpanLength 返回字符数在文本的大小。 (继承自 IVsTextImage。)
公共方法 GetText 返回文本范围中获取文本。 (继承自 IVsTextImage。)
公共方法 GetTextAddressOfOffset 返回给定缓冲区地址的文本地址。 (继承自 IVsTextImage。)
公共方法 GetTextBSTR 返回文本范围中获取文本作为 BSTR (继承自 IVsTextImage。)
公共方法 LockImage 请注意文本图像正在使用。 (继承自 IVsTextImage。)
公共方法 ReleaseLine 释放 LINEDATAEX 结构。 (继承自 IVsTextImage。)
公共方法 Replace 文本范围替换的通知。 (继承自 IVsTextImage。)
公共方法 UnadviseTextImageEvents 取消环境注册接收文本图像更改的通知。 (继承自 IVsTextImage。)
公共方法 UnlockImage 请注意文本图像未在使用中。 (继承自 IVsTextImage。)

页首

请参阅

参考

Microsoft.VisualStudio.TextManager.Interop 命名空间