IVsContainedLanguageColorizer::ColorizeLineFragment Method (Int32, Int32, Int32, String^, Int32, UInt32, Int32)
Visual Studio 2015
Colorizes the specified line fragment or text.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
int ColorizeLineFragment( int iLine, int iIndex, int iLength, String^ pszText, int iState, [OutAttribute] unsigned int% pAttributes, [OutAttribute] int% piNewState )
Parameters
- iLine
-
Type:
System::Int32
[in] Number of the line to be colorized.
- iIndex
-
Type:
System::Int32
[in] Starting character index for the line fragment.
- iLength
-
Type:
System::Int32
[in] Number of characters to colorize.
- pszText
-
Type:
System::String^
[in] The actual text to colorize. The iLength parameter specifies the number of characters from this string to colorize.
- iState
-
Type:
System::Int32
[in] A state value used by the colorizer representing the state of parsing at the beginning of the line. The parsing state is custom to each colorizer.
- pAttributes
-
Type:
System::UInt32
[out] Color attributes of the text.
- piNewState
-
Type:
System::Int32
[out] The parsing state at the end of the specified text.
From singlefileeditor.idl:
long IVsContainedLanguageColorizer::ColorizeLineFragment( [in] long iLine, [in] long iIndex, [in] long iLength, [in] const WCHAR *pszText, [in] long iState, [out] ULONG * pAttributes );
Show: