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
声明
<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 | |
---|---|---|
BaseLineIndexToLocal | Converts base line coordinates to local coordinates. | |
CanReplaceLines | Determines if specified number of replacement characters can be inserted into lines. | |
CopyLineText | Puts the specified span of text into a caller-allocated buffer | |
CreateTrackingPoint | Creates a zero-length tracking point that is similar to a zero-length marker. | |
DeeperLayerLineIndexToLocal | Converts deeper layer line coordinates to local line coordinates. | |
EnumLayerMarkers | Enumerates all markers. | |
GetBaseBuffer | Gets the base buffer of text lines. | |
GetLastLineIndex | Returns the length and index of the last line. | |
GetLengthOfLine | Returns the length of a line. | |
GetLineCount | Returns the number of lines. | |
GetLineDataEx | Gets all line data. | |
GetLineText | Gets the specified span of text. | |
GetMarkerData | Gets the marker data of the specified line span. | |
LocalLineIndexToBase | Converts local line coordinates to base coordinates. | |
LocalLineIndexToDeeperLayer | Converts local line coordinates to deeper layer line coordinates. | |
LockBufferEx | Locks the buffer as specified for reading and writing. | |
MapLocalSpansToTextOriginatingLayer | Maps a set of local spans to the shallowest layer that originates text. | |
ReleaseLineDataEx | Releases previously obtained line data. | |
ReleaseMarkerData | Releases previously obtained marker data. | |
ReplaceLines | Handles line breaking/joining, etc. | |
ReplaceLinesEx | Handles line breaking/joining, etc. | |
UnlockBufferEx | Unlocks the buffer as specified for reading and writing. |
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.