IVsCodeWindowManager Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows adornments, such as drop-down bars, to be added to or removed from a code window.
public interface class IVsCodeWindowManager
public interface class IVsCodeWindowManager
__interface IVsCodeWindowManager
[System.Runtime.InteropServices.Guid("4758CB90-6110-4440-B577-2E3FC91E4B84")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsCodeWindowManager
[System.Runtime.InteropServices.Guid("4758CB90-6110-4440-B577-2E3FC91E4B84")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsCodeWindowManager
[<System.Runtime.InteropServices.Guid("4758CB90-6110-4440-B577-2E3FC91E4B84")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsCodeWindowManager = interface
[<System.Runtime.InteropServices.Guid("4758CB90-6110-4440-B577-2E3FC91E4B84")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsCodeWindowManager = interface
Public Interface IVsCodeWindowManager
- Derived
- Attributes
Remarks
To get the code window manager attached to an instance of the IVsCodeWindow interface, call QueryService
for SVsCodeWindowManager service and the interface you want on it. It is not appropriate for any external entity, other than the code window itself, to call IVsCodeWindowManager methods, but using this approach, you can expose private interfaces that may be useful to other parties on the code window manager.
Notes to Callers
A code window calls this interface through the environment using the service SVsCodeWindowManager when adding or removing adornments.
See illustrations of the implementation and/or calling of this interface in the sample Figures Language Service.
This is a convenient place for the following operations:
Adding a drop-down bar (IVsDropdownBar).
Adding attributes/context to the current user context (in some situations).
Updating an editor caption by calling the SetBaseEditorCaption(String[]) method or the GetEditorCaption(READONLYSTATUS, String) method. Then, use the IVsFindTarget interface to get the window frame, and use the window frame to set the actual window frame's editor caption.
Methods
AddAdornments() |
Adds adornments, such as drop-down bars, to a code window. |
OnNewView(IVsTextView) |
Called by the core editor to notify a language that a new view was created. |
RemoveAdornments() |
Removes adornments, such as drop-down bars, from a code window. |