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)

Syntax

声明
<InterfaceTypeAttribute()> _
<GuidAttribute("ECF3E19D-149C-43AA-80C2-D0A46946DAA3")> _
Public Interface IVsTextLines _
    Inherits IVsTextBuffer
用法
Dim instance As IVsTextLines
[InterfaceTypeAttribute()]
[GuidAttribute("ECF3E19D-149C-43AA-80C2-D0A46946DAA3")]
public interface IVsTextLines : IVsTextBuffer
[InterfaceTypeAttribute()]
[GuidAttribute(L"ECF3E19D-149C-43AA-80C2-D0A46946DAA3")]
public interface class IVsTextLines : IVsTextBuffer
[<InterfaceTypeAttribute()>]
[<GuidAttribute("ECF3E19D-149C-43AA-80C2-D0A46946DAA3")>]
type IVsTextLines =  
    interface
        interface IVsTextBuffer
    end
public interface IVsTextLines extends IVsTextBuffer

Remarks

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, Figures Language Service, and Solution Extender.

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.

See Also

Reference

IVsTextLines Members

Microsoft.VisualStudio.TextManager.Interop Namespace

IVsTextLines2