IVsTextLines IVsTextLines IVsTextLines IVsTextLines IVsTextLines IVsTextLines Interface

Definition

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

public interface class IVsTextLines : Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer
public interface class IVsTextLines : Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer
__interface IVsTextLines : Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer
[System.Runtime.InteropServices.Guid("ECF3E19D-149C-43AA-80C2-D0A46946DAA3")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsTextLines : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
type IVsTextLines = interface
    interface IVsTextBuffer
Public Interface IVsTextLines
Implements IVsTextBuffer
Derived
Attributes
Implements

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.

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.

Methods

AdviseTextLinesEvents(IVsTextLinesEvents, UInt32) AdviseTextLinesEvents(IVsTextLinesEvents, UInt32) AdviseTextLinesEvents(IVsTextLinesEvents, UInt32) AdviseTextLinesEvents(IVsTextLinesEvents, UInt32) AdviseTextLinesEvents(IVsTextLinesEvents, UInt32) AdviseTextLinesEvents(IVsTextLinesEvents, UInt32)

Microsoft internal use only.

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

Tests whether a given editing operation such as copy or cut can succeed.

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

Puts the specified span of text into a caller-allocated buffer (an array).

CreateEditPoint(Int32, Int32, Object) CreateEditPoint(Int32, Int32, Object) CreateEditPoint(Int32, Int32, Object) CreateEditPoint(Int32, Int32, Object) CreateEditPoint(Int32, Int32, Object) CreateEditPoint(Int32, Int32, Object)

Creates an EditPoint object at the given location in the text buffer.

CreateLineMarker(Int32, Int32, Int32, Int32, Int32, IVsTextMarkerClient, IVsTextLineMarker[]) CreateLineMarker(Int32, Int32, Int32, Int32, Int32, IVsTextMarkerClient, IVsTextLineMarker[]) CreateLineMarker(Int32, Int32, Int32, Int32, Int32, IVsTextMarkerClient, IVsTextLineMarker[]) CreateLineMarker(Int32, Int32, Int32, Int32, Int32, IVsTextMarkerClient, IVsTextLineMarker[]) CreateLineMarker(Int32, Int32, Int32, Int32, Int32, IVsTextMarkerClient, IVsTextLineMarker[]) CreateLineMarker(Int32, Int32, Int32, Int32, Int32, IVsTextMarkerClient, IVsTextLineMarker[])

Creates a marker of a given type over the specified region.

CreateTextPoint(Int32, Int32, Object) CreateTextPoint(Int32, Int32, Object) CreateTextPoint(Int32, Int32, Object) CreateTextPoint(Int32, Int32, Object) CreateTextPoint(Int32, Int32, Object) CreateTextPoint(Int32, Int32, Object)

Creates a TextPoint object at the given location in the text buffer.

EnumMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLineMarkers) EnumMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLineMarkers) EnumMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLineMarkers) EnumMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLineMarkers) EnumMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLineMarkers) EnumMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLineMarkers)

Enumerates a specific set of text line markers, based on the criteria specified.

FindMarkerByLineIndex(Int32, Int32, Int32, UInt32, IVsTextLineMarker) FindMarkerByLineIndex(Int32, Int32, Int32, UInt32, IVsTextLineMarker) FindMarkerByLineIndex(Int32, Int32, Int32, UInt32, IVsTextLineMarker) FindMarkerByLineIndex(Int32, Int32, Int32, UInt32, IVsTextLineMarker) FindMarkerByLineIndex(Int32, Int32, Int32, UInt32, IVsTextLineMarker) FindMarkerByLineIndex(Int32, Int32, Int32, UInt32, IVsTextLineMarker)

Locates a marker of a given type based on a line index.

GetLanguageServiceID(Guid) GetLanguageServiceID(Guid) GetLanguageServiceID(Guid) GetLanguageServiceID(Guid) GetLanguageServiceID(Guid) GetLanguageServiceID(Guid)

Returns the unique identifier of the language that is providing colorization and other attribute data to this buffer.

GetLastLineIndex(Int32, Int32) GetLastLineIndex(Int32, Int32) GetLastLineIndex(Int32, Int32) GetLastLineIndex(Int32, Int32) GetLastLineIndex(Int32, Int32) GetLastLineIndex(Int32, Int32)

Returns the last line in the text buffer.

GetLengthOfLine(Int32, Int32) GetLengthOfLine(Int32, Int32) GetLengthOfLine(Int32, Int32) GetLengthOfLine(Int32, Int32) GetLengthOfLine(Int32, Int32) GetLengthOfLine(Int32, Int32)

Returns the length of a line in the buffer.

GetLineCount(Int32) GetLineCount(Int32) GetLineCount(Int32) GetLineCount(Int32) GetLineCount(Int32) GetLineCount(Int32)

Returns the number of lines in the buffer.

GetLineData(Int32, LINEDATA[], MARKERDATA[]) GetLineData(Int32, LINEDATA[], MARKERDATA[]) GetLineData(Int32, LINEDATA[], MARKERDATA[]) GetLineData(Int32, LINEDATA[], MARKERDATA[]) GetLineData(Int32, LINEDATA[], MARKERDATA[]) GetLineData(Int32, LINEDATA[], MARKERDATA[])

Provides direct, line-oriented access to the text buffer.

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

Provides direct, line-oriented access to the text buffer.

GetLineIndexOfPosition(Int32, Int32, Int32) GetLineIndexOfPosition(Int32, Int32, Int32) GetLineIndexOfPosition(Int32, Int32, Int32) GetLineIndexOfPosition(Int32, Int32, Int32) GetLineIndexOfPosition(Int32, Int32, Int32) GetLineIndexOfPosition(Int32, Int32, Int32)

Returns the line and column numbers in the text buffer, given a position number.

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

Returns the specified span of text in a BSTR.

GetMarkerData(Int32, Int32, MARKERDATA[]) GetMarkerData(Int32, Int32, MARKERDATA[]) GetMarkerData(Int32, Int32, MARKERDATA[]) GetMarkerData(Int32, Int32, MARKERDATA[]) GetMarkerData(Int32, Int32, MARKERDATA[]) GetMarkerData(Int32, Int32, MARKERDATA[])

Returns text marker data for the specified line range within the text buffer.

GetPairExtents(TextSpan[], TextSpan[]) GetPairExtents(TextSpan[], TextSpan[]) GetPairExtents(TextSpan[], TextSpan[]) GetPairExtents(TextSpan[], TextSpan[]) GetPairExtents(TextSpan[], TextSpan[]) GetPairExtents(TextSpan[], TextSpan[])

Method information is not provided. Do not use.

GetPositionOfLine(Int32, Int32) GetPositionOfLine(Int32, Int32) GetPositionOfLine(Int32, Int32) GetPositionOfLine(Int32, Int32) GetPositionOfLine(Int32, Int32) GetPositionOfLine(Int32, Int32)

Returns the position number of a line.

GetPositionOfLineIndex(Int32, Int32, Int32) GetPositionOfLineIndex(Int32, Int32, Int32) GetPositionOfLineIndex(Int32, Int32, Int32) GetPositionOfLineIndex(Int32, Int32, Int32) GetPositionOfLineIndex(Int32, Int32, Int32) GetPositionOfLineIndex(Int32, Int32, Int32)

Returns the position number in the text buffer, given a line and column number.

GetSize(Int32) GetSize(Int32) GetSize(Int32) GetSize(Int32) GetSize(Int32) GetSize(Int32)

Returns the size in characters of the buffer.

GetStateFlags(UInt32) GetStateFlags(UInt32) GetStateFlags(UInt32) GetStateFlags(UInt32) GetStateFlags(UInt32) GetStateFlags(UInt32)

Returns the state flags of the text buffer.

GetUndoManager(IOleUndoManager) GetUndoManager(IOleUndoManager) GetUndoManager(IOleUndoManager) GetUndoManager(IOleUndoManager) GetUndoManager(IOleUndoManager) GetUndoManager(IOleUndoManager)

Returns the undo manager for this buffer.

InitializeContent(String, Int32) InitializeContent(String, Int32) InitializeContent(String, Int32) InitializeContent(String, Int32) InitializeContent(String, Int32) InitializeContent(String, Int32)

Initializes the content of the text buffer.

IVsTextLinesReserved1(Int32, LINEDATA[], Int32) IVsTextLinesReserved1(Int32, LINEDATA[], Int32) IVsTextLinesReserved1(Int32, LINEDATA[], Int32) IVsTextLinesReserved1(Int32, LINEDATA[], Int32) IVsTextLinesReserved1(Int32, LINEDATA[], Int32) IVsTextLinesReserved1(Int32, LINEDATA[], Int32)

Method information is not provided. Do not use.

LockBuffer() LockBuffer() LockBuffer() LockBuffer() LockBuffer() LockBuffer()

Locks the text buffer for the purpose of access control. Deprecated.

LockBufferEx(UInt32) LockBufferEx(UInt32) LockBufferEx(UInt32) LockBufferEx(UInt32) LockBufferEx(UInt32) LockBufferEx(UInt32)

Extension of the LockBuffer() method. Deprecated.

ReleaseLineData(LINEDATA[]) ReleaseLineData(LINEDATA[]) ReleaseLineData(LINEDATA[]) ReleaseLineData(LINEDATA[]) ReleaseLineData(LINEDATA[]) ReleaseLineData(LINEDATA[])

Releases the LINEDATA structure.

ReleaseLineDataEx(LINEDATAEX[]) ReleaseLineDataEx(LINEDATAEX[]) ReleaseLineDataEx(LINEDATAEX[]) ReleaseLineDataEx(LINEDATAEX[]) ReleaseLineDataEx(LINEDATAEX[]) ReleaseLineDataEx(LINEDATAEX[])

Releases the LINEDATAEX structure.

ReleaseMarkerData(MARKERDATA[]) ReleaseMarkerData(MARKERDATA[]) ReleaseMarkerData(MARKERDATA[]) ReleaseMarkerData(MARKERDATA[]) ReleaseMarkerData(MARKERDATA[]) ReleaseMarkerData(MARKERDATA[])

Cleans up the MARKERDATA structure.

Reload(Int32) Reload(Int32) Reload(Int32) Reload(Int32) Reload(Int32) Reload(Int32)

Reloads the text buffer.

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

Replaces text without deleting markers.

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

Handles stream-like line editing, such as line breaking and line joining.

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

Handles stream-like line editing, such as line breaking and line joining.

Reserved1() Reserved1() Reserved1() Reserved1() Reserved1() Reserved1()

Reserved in the Vtable for future use.

Reserved10() Reserved10() Reserved10() Reserved10() Reserved10() Reserved10()

Reserved in the Vtable for future use.

Reserved2() Reserved2() Reserved2() Reserved2() Reserved2() Reserved2()

Reserved in the Vtable for future use.

Reserved3() Reserved3() Reserved3() Reserved3() Reserved3() Reserved3()

Reserved in the Vtable for future use.

Reserved4() Reserved4() Reserved4() Reserved4() Reserved4() Reserved4()

Reserved in the Vtable for future use.

Reserved5() Reserved5() Reserved5() Reserved5() Reserved5() Reserved5()

Reserved in the Vtable for future use.

Reserved6() Reserved6() Reserved6() Reserved6() Reserved6() Reserved6()

Reserved in the Vtable for future use.

Reserved7() Reserved7() Reserved7() Reserved7() Reserved7() Reserved7()

Reserved in the Vtable for future use.

Reserved8() Reserved8() Reserved8() Reserved8() Reserved8() Reserved8()

Reserved in the Vtable for future use.

Reserved9() Reserved9() Reserved9() Reserved9() Reserved9() Reserved9()

Reserved in the Vtable for future use.

SetLanguageServiceID(Guid) SetLanguageServiceID(Guid) SetLanguageServiceID(Guid) SetLanguageServiceID(Guid) SetLanguageServiceID(Guid) SetLanguageServiceID(Guid)

Sets the unique identifier of the language that is providing colorization and other attribute data to the buffer.

SetStateFlags(UInt32) SetStateFlags(UInt32) SetStateFlags(UInt32) SetStateFlags(UInt32) SetStateFlags(UInt32) SetStateFlags(UInt32)

Sets the state flags of the text buffer.

UnadviseTextLinesEvents(UInt32) UnadviseTextLinesEvents(UInt32) UnadviseTextLinesEvents(UInt32) UnadviseTextLinesEvents(UInt32) UnadviseTextLinesEvents(UInt32) UnadviseTextLinesEvents(UInt32)

Not implemented. Do not use.

UnlockBuffer() UnlockBuffer() UnlockBuffer() UnlockBuffer() UnlockBuffer() UnlockBuffer()

Unlocks a buffer locked with the method LockBuffer().

UnlockBufferEx(UInt32) UnlockBufferEx(UInt32) UnlockBufferEx(UInt32) UnlockBufferEx(UInt32) UnlockBufferEx(UInt32) UnlockBufferEx(UInt32)

Extension of the UnlockBuffer() method.

Applies to