Share via


IVsTextLayer Interface

Handles layout between a base buffer and a view.

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

Syntax

'Declaration
<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

The IVsTextLayer type exposes the following members.

Methods

  Name Description
Public method BaseLineIndexToLocal
Public method CanReplaceLines
Public method CopyLineText Puts the specified span of text into a caller-allocated buffer
Public method CreateTrackingPoint Creates a zero-length tracking point that is similar to a zero-length marker.
Public method DeeperLayerLineIndexToLocal
Public method EnumLayerMarkers Enumerates all markers.
Public method GetBaseBuffer
Public method GetLastLineIndex Returns the length of the last line.
Public method GetLengthOfLine Returns the length of a line.
Public method GetLineCount Returns the number of lines.
Public method GetLineDataEx
Public method GetLineText Puts the specified span of text into a BSTR.
Public method GetMarkerData
Public method LocalLineIndexToBase
Public method LocalLineIndexToDeeperLayer
Public method LockBufferEx
Public method MapLocalSpansToTextOriginatingLayer Maps a set of local spans to the shallowest layer that originates text.
Public method ReleaseLineDataEx
Public method ReleaseMarkerData
Public method ReplaceLines Handles line breaking/joining, etc.
Public method ReplaceLinesEx Handles line breaking/joining, etc.
Public method UnlockBufferEx

Top

Remarks

An example is a function-at-a-time layer which hides the text before and after a function.

One text layer can act as a text layer upon another. The buffer itself is a text layer. Thus any number of text layers can modify the view’s "perception" of the underlying buffer.

This interface is derived from IVsTextLines

Notes to Implementers

You cannot currently implement this interface.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace

IVsTextLayer2