IVsTextImage::GetLine Method (UInt32, Int32, Int32, Int32, array<LINEDATAEX>^)
Provides direct, line-oriented access to the text buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int GetLine( unsigned int grfGet, int iLine, int iStartIndex, int iEndIndex, array<LINEDATAEX>^ pLineData )
Parameters
- grfGet
-
Type:
System::UInt32
[in] Flags providing additional information about the line. For a list of dwFlags values, see GLDE_FLAGS.
- iLine
-
Type:
System::Int32
[in] Integer containing the line number. This is a zero-based value.
- iStartIndex
-
Type:
System::Int32
[in] Starting character index within the line. Must be less than or equal to the length of the line.
- iEndIndex
-
Type:
System::Int32
[in] Ending character index within the line. Must be less than or equal to the length of the line.
- pLineData
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::LINEDATAEX>^
[out] Pointer to the filled-in LINEDATA structure. This is allocated by the environment and filled in by the GetLine method.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Use the elements of grfGet to specify the level of locking you want to institute. The environment will call ReleaseLine when the line is no longer needed.
From textmgr.idl:
HRESULT IVsTextImage::GetLine( [in] DWORD grfGet, [in] LONG iLine, [in] LONG iStartIndex, [in] LONG iEndIndex, [out, retval] LINEDATAEX * pLineData );