Source::ColorState Property
Visual Studio 2015
Gets or sets the IVsTextColorState object that is used in various parsing tasks.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public: property IVsTextColorState^ ColorState { IVsTextColorState^ get(); void set(IVsTextColorState^ value); }
Property Value
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextColorState^The IVsTextColorState interface that is obtained from the IVsTextLines object passed to the constructor.
The IVsTextColorState interface is used by the colorizer to remember the parse state at the end of every line. This allows parsing to continue from any line in the source.
Note |
|---|
The colorizer parser is used not only for syntax highlighting but for retrieving information about tokens on a line. This is typically done through a call to the GetLineInfo method to tokenize the line; then the tokens are accessed one by one. |
Show:
