Called when the current view has changed to a different view.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Sub OnActiveViewChanged ( _
textView As IVsTextView _
)
'使用
Dim instance As LanguageService
Dim textView As IVsTextView
instance.OnActiveViewChanged(textView)
public virtual void OnActiveViewChanged(
IVsTextView textView
)
public:
virtual void OnActiveViewChanged(
IVsTextView^ textView
)
public function OnActiveViewChanged(
textView : IVsTextView
)
Parameters
textView
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView[in] The IVsTextView object representing the new current view.
Remarks
This method is typically called when a new view has been added to the code window manager.
The base method internally stores the given view as the currently active view.
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.