IVsTextLayer 接口

在基本缓冲区和视图之间的处理格式。

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

语法

声明
<InterfaceTypeAttribute()> _
<GuidAttribute("0E145D3F-BEFC-4FD9-8714-B01AE89F4396")> _
Public Interface IVsTextLayer
[InterfaceTypeAttribute()]
[GuidAttribute("0E145D3F-BEFC-4FD9-8714-B01AE89F4396")]
public interface IVsTextLayer
[InterfaceTypeAttribute()]
[GuidAttribute(L"0E145D3F-BEFC-4FD9-8714-B01AE89F4396")]
public interface class IVsTextLayer
[<InterfaceTypeAttribute()>]
[<GuidAttribute("0E145D3F-BEFC-4FD9-8714-B01AE89F4396")>]
type IVsTextLayer =  interface end
public interface IVsTextLayer

IVsTextLayer 类型公开以下成员。

方法

  名称 说明
公共方法 BaseLineIndexToLocal
公共方法 CanReplaceLines
公共方法 CopyLineText 将文本指定的范围到调用方分配的缓冲区
公共方法 CreateTrackingPoint 创建类似于一零长度为零长度跟踪点。
公共方法 DeeperLayerLineIndexToLocal
公共方法 EnumLayerMarkers 枚举所有标记。
公共方法 GetBaseBuffer
公共方法 GetLastLineIndex 返回最后一行的长度。
公共方法 GetLengthOfLine 返回行的长度。
公共方法 GetLineCount 返回的行数。
公共方法 GetLineDataEx
公共方法 GetLineText 将文本指定的范围为 BSTR。
公共方法 GetMarkerData
公共方法 LocalLineIndexToBase
公共方法 LocalLineIndexToDeeperLayer
公共方法 LockBufferEx
公共方法 MapLocalSpansToTextOriginatingLayer 映射设置局部范围为给定文本的最浅绿的层。
公共方法 ReleaseLineDataEx
公共方法 ReleaseMarkerData
公共方法 ReplaceLines 处理分行符/连接等。
公共方法 ReplaceLinesEx 处理分行符/连接等。
公共方法 UnlockBufferEx

页首

备注

示例是 " 功能之前或之后,隐藏该文本的功能时间层。

一个文本层可以作为文本层在另一个。 缓冲区是文本层。 因此任意数量的文本层可以修改视图 “的感知力”基础缓冲区。

此接口从派生 IVsTextLines

对实现者的说明

您当前不能实现此接口。

请参阅

参考

Microsoft.VisualStudio.TextManager.Interop 命名空间

IVsTextLayer2