LanguageService::UpdateLanguageContext Method (LanguageContextHint, IVsTextLines^, array<TextSpan>^, IVsUserContext^)
Visual Studio 2015
Updates the current user help context in a selected region of the given source.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public: virtual void UpdateLanguageContext( LanguageContextHint hint, IVsTextLines^ buffer, array<TextSpan>^ ptsSelection, IVsUserContext^ context )
Parameters
- hint
-
Type:
Microsoft.VisualStudio.TextManager.Interop::LanguageContextHint
[in] A set of flags from the LanguageContextHint enumeration.
- buffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
[in] The IVsTextLines object holding the source.
- ptsSelection
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
[in] A single TextSpan object describing the selected range of text (or the current caret position).
- context
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsUserContext^
[in] An IVsUserContext object that is to be updated.
This method is called to allow the language service to update the given user context.
The base method does nothing.
Show: