Partager via


IVsTextLayer Interface

Definition

Handles layout between a base buffer and a view.

public interface class IVsTextLayer
public interface class IVsTextLayer
__interface IVsTextLayer
[System.Runtime.InteropServices.Guid("0E145D3F-BEFC-4FD9-8714-B01AE89F4396")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsTextLayer
[System.Runtime.InteropServices.Guid("0E145D3F-BEFC-4FD9-8714-B01AE89F4396")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsTextLayer
[<System.Runtime.InteropServices.Guid("0E145D3F-BEFC-4FD9-8714-B01AE89F4396")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsTextLayer = interface
[<System.Runtime.InteropServices.Guid("0E145D3F-BEFC-4FD9-8714-B01AE89F4396")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsTextLayer = interface
Public Interface IVsTextLayer
Attributes

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.

Methods

BaseLineIndexToLocal(Int32, Int32, Int32, Int32)

Converts base line coordinates to local coordinates.

CanReplaceLines(Int32, Int32, Int32, Int32, Int32)

Determines if specified number of replacement characters can be inserted into lines.

CopyLineText(Int32, Int32, Int32, Int32, IntPtr, Int32)

Puts the specified span of text into a caller-allocated buffer

CreateTrackingPoint(Int32, Int32, IVsTextTrackingPoint)

Creates a zero-length tracking point that is similar to a zero-length marker.

DeeperLayerLineIndexToLocal(UInt32, IVsTextLayer, Int32, Int32, Int32, Int32)

Converts deeper layer line coordinates to local line coordinates.

EnumLayerMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLayerMarkers)

Enumerates all markers.

GetBaseBuffer(IVsTextLines)

Gets the base buffer of text lines.

GetLastLineIndex(Int32, Int32)

Returns the length and index of the last line.

GetLengthOfLine(Int32, Int32)

Returns the length of a line.

GetLineCount(Int32)

Returns the number of lines.

GetLineDataEx(UInt32, Int32, Int32, Int32, LINEDATAEX[], MARKERDATA[])

Gets all line data.

GetLineText(Int32, Int32, Int32, Int32, String)

Gets the specified span of text.

GetMarkerData(Int32, Int32, MARKERDATA[])

Gets the marker data of the specified line span.

LocalLineIndexToBase(Int32, Int32, Int32, Int32)

Converts local line coordinates to base coordinates.

LocalLineIndexToDeeperLayer(IVsTextLayer, Int32, Int32, Int32, Int32)

Converts local line coordinates to deeper layer line coordinates.

LockBufferEx(UInt32)

Locks the buffer as specified for reading and writing.

MapLocalSpansToTextOriginatingLayer(UInt32, IVsEnumTextSpans, IVsTextLayer, IVsEnumTextSpans)

Maps a set of local spans to the shallowest layer that originates text.

ReleaseLineDataEx(LINEDATAEX[])

Releases previously obtained line data.

ReleaseMarkerData(MARKERDATA[])

Releases previously obtained marker data.

ReplaceLines(Int32, Int32, Int32, Int32, IntPtr, Int32, TextSpan[])

Handles line breaking/joining, etc.

ReplaceLinesEx(UInt32, Int32, Int32, Int32, Int32, IntPtr, Int32, TextSpan[])

Handles line breaking/joining, etc.

UnlockBufferEx(UInt32)

Unlocks the buffer as specified for reading and writing.

Applies to