Export (0) Print
Expand All

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)

[InterfaceTypeAttribute()]
[GuidAttribute("ECF3E19D-149C-43AA-80C2-D0A46946DAA3")]
public interface IVsTextLines : IVsTextBuffer

The IVsTextLines type exposes the following members.

  NameDescription
Public methodAdviseTextLinesEventsMicrosoft internal use only.
Public methodCanReplaceLinesTests whether a given editing operation such as copy or cut can succeed.
Public methodCopyLineTextPuts the specified span of text into a caller-allocated buffer (an array).
Public methodCreateEditPointCreates an EditPoint object at the given location in the text buffer.
Public methodCreateLineMarkerCreates a marker of a given type over the specified region.
Public methodCreateTextPointCreates a TextPoint object at the given location in the text buffer.
Public methodEnumMarkersEnumerates a specific set of text line markers, based on the criteria specified.
Public methodFindMarkerByLineIndexLocates a marker of a given type based on a line index.
Public methodGetLanguageServiceIDReturns the unique identifier of the language that is providing colorization and other attribute data to this buffer.
Public methodGetLastLineIndexReturns the last line in the text buffer.
Public methodGetLengthOfLineReturns the length of a line in the buffer.
Public methodGetLineCountReturns the number of lines in the buffer.
Public methodGetLineDataProvides direct, line-oriented access to the text buffer.
Public methodGetLineDataExProvides direct, line-oriented access to the text buffer.
Public methodGetLineIndexOfPositionReturns the line and column numbers in the text buffer, given a position number.
Public methodGetLineTextReturns the specified span of text in a BSTR.
Public methodGetMarkerDataReturns text marker data for the specified line range within the text buffer.
Public methodGetPairExtentsMethod information is not provided. Do not use.
Public methodGetPositionOfLineReturns the position number of a line.
Public methodGetPositionOfLineIndexReturns the position number in the text buffer, given a line and column number.
Public methodGetSizeReturns the size in characters of the buffer.
Public methodGetStateFlagsReturns the state flags of the text buffer.
Public methodGetUndoManagerReturns the undo manager for this buffer.
Public methodInitializeContentInitializes the content of the text buffer.
Public methodIVsTextLinesReserved1Method information is not provided. Do not use.
Public methodLockBufferLocks the text buffer for the purpose of access control. Deprecated.
Public methodLockBufferExExtension of the LockBuffer method. Deprecated.
Public methodReleaseLineDataReleases the LINEDATA structure.
Public methodReleaseLineDataExReleases the LINEDATAEX structure.
Public methodReleaseMarkerDataCleans up the MARKERDATA structure.
Public methodReloadReloads the text buffer.
Public methodReloadLinesReplaces text without deleting markers.
Public methodReplaceLinesHandles stream-like line editing, such as line breaking and line joining.
Public methodReplaceLinesExHandles stream-like line editing, such as line breaking and line joining.
Public methodReserved1Reserved in the Vtable for future use.
Public methodReserved10Reserved in the Vtable for future use.
Public methodReserved2Reserved in the Vtable for future use.
Public methodReserved3Reserved in the Vtable for future use.
Public methodReserved4Reserved in the Vtable for future use.
Public methodReserved5Reserved in the Vtable for future use.
Public methodReserved6Reserved in the Vtable for future use.
Public methodReserved7Reserved in the Vtable for future use.
Public methodReserved8Reserved in the Vtable for future use.
Public methodReserved9Reserved in the Vtable for future use.
Public methodSetLanguageServiceIDSets the unique identifier of the language that is providing colorization and other attribute data to the buffer.
Public methodSetStateFlagsSets the state flags of the text buffer.
Public methodUnadviseTextLinesEventsNot implemented. Do not use.
Public methodUnlockBufferUnlocks a buffer locked with the method LockBuffer.
Public methodUnlockBufferExExtension of the UnlockBuffer method.
Top

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.

Show:
© 2014 Microsoft