This documentation is archived and is not being maintained.

IVsTextLines Interface

Provides read and write access to the text buffer using two-dimensional coordinates.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

[GuidAttribute("ECF3E19D-149C-43AA-80C2-D0A46946DAA3")] 
[InterfaceTypeAttribute(1)] 
public interface IVsTextLines : IVsTextBuffer
/** @attribute GuidAttribute("ECF3E19D-149C-43AA-80C2-D0A46946DAA3") */ 
/** @attribute InterfaceTypeAttribute(1) */ 
public interface IVsTextLines extends IVsTextBuffer
GuidAttribute("ECF3E19D-149C-43AA-80C2-D0A46946DAA3") 
InterfaceTypeAttribute(1) 
public interface IVsTextLines extends IVsTextBuffer

The IVsTextLines interface provides the mechanism to access the contents of the text buffer in a line-oriented fashion. IVsTextLines is derived from IVsTextBuffer.

Text is defined as lines separated by end-of-line (EOL) indicators. Lines are measured using a long type. This interface provides extensive text read and write capabilities using the two-dimensional coordinate system. You can also use this interface to create text markers.

IVsTextLines calls methods in IVsTextLinesEvents to inform a listener that text or attributes in the buffer have changed. For more information about setting up event notification, see IVsTextLinesEvents.

See illustrations of the implementation and/or calling of this interface in the samples Figures Edit Sample, Figures Language Service Sample, and Solution Extender Sample.

Notes to Implementers Implemented by text buffers in the environment.

Notes to Callers Called by clients that want to access the text buffer. You can use the text buffer object to read or change text.

Show: