IVsColorizer::GetStateAtEndOfLine Method (Int32, Int32, IntPtr, Int32)
Determines the end-of-line state for a given line.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- iLine
-
Type:
System::Int32
[in] Line whose state is to be queried.
- iLength
-
Type:
System::Int32
[in] Length of the line minus the end-of-line marker (CR, LF, CRLF pair, or 0 (EOF)).
- pText
-
Type:
System::IntPtr
[in] The line's text (examine only up to iLength characters).
- iState
-
Type:
System::Int32
[in] The colorizer's state at the beginning of the line.
From textmgr.idl:
HRESULT IVsColorizer::GetStateAtEndOfLine( [in] long iLine, [in] long iLength, [in] const WCHAR *pText, [in] long iState );
The environment calls this method when it needs to determine the start state for a particular line, but the lines above that line are not displayed. For example, this method is called when a user scrolls up in the editor.
This method is essentially the same as the ColorizeLine method, except that the editor does not require the line color data. If the colorizer does not require state maintenance (that is, the GetStateMaintenanceFlag method returns false), then this method is not called. Implementations should be as fast as possible to maintain peak editor performance.