Share via


LanguageService.GetCodeWindowManagerForView Method

Returns the CodeWindowManager associated with the specified IVsTextView object.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Function GetCodeWindowManagerForView ( _
    view As IVsTextView _
) As CodeWindowManager
public CodeWindowManager GetCodeWindowManagerForView(
    IVsTextView view
)
public:
CodeWindowManager^ GetCodeWindowManagerForView(
    IVsTextView^ view
)
member GetCodeWindowManagerForView : 
        view:IVsTextView -> CodeWindowManager
public function GetCodeWindowManagerForView(
    view : IVsTextView
) : CodeWindowManager

Parameters

Return Value

Type: Microsoft.VisualStudio.Package.CodeWindowManager
If successful, returns a CodeWindowManager object; otherwise, returns a null value indicating there is no associated CodeWindowManager object for the given IVsTextView object.

Remarks

Each CodeWindowManager is associated with an IVsTextView object. This method searches an internal list for a CodeWindowManager that has a matching IVsTextView object and returns the found CodeWindowManager object.

In the default language service, this method is called from LanguageService.OnIdle and LanguageService.SynchronizeDropdowns.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace