Returns the CodeWindowManager associated with the specified IVsTextView object.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Function GetCodeWindowManagerForView ( _
view As IVsTextView _
) As CodeWindowManager
'使用
Dim instance As LanguageService
Dim view As IVsTextView
Dim returnValue As CodeWindowManager
returnValue = instance.GetCodeWindowManagerForView(view)
public CodeWindowManager GetCodeWindowManagerForView(
IVsTextView view
)
public:
CodeWindowManager^ GetCodeWindowManagerForView(
IVsTextView^ view
)
public function GetCodeWindowManagerForView(
view : IVsTextView
) : CodeWindowManager
Parameters
view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView[in] The IVsTextView object for which to get the associated CodeWindowManager object.
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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.