WindowPaneProviderService Class
A service that provides file-specific window panes.
This API is not CLS-compliant. The CLS-compliant alternative is [None].
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Class WindowPaneProviderService
[CLSCompliantAttribute(false)]
public class WindowPaneProviderService
[CLSCompliantAttribute(false)]
public ref class WindowPaneProviderService
[<CLSCompliantAttribute(false)>]
type WindowPaneProviderService = class end
public class WindowPaneProviderService
The WindowPaneProviderService type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WindowPaneProviderService(IServiceProvider) | Creates a new WindowPaneProviderService. | |
WindowPaneProviderService(IServiceProvider, String) | Creates a new WindowPaneProviderService for the specified file extension. |
Top
Properties
Name | Description | |
---|---|---|
Extension | Gets the file extension. |
Top
Methods
Name | Description | |
---|---|---|
CreateWindowPane(DesignSurface) | Creates a window pane for the specified design surface. | |
CreateWindowPane(Type, DesignSurface) | Creates a designer window pane for the specified type of window pane. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetRegisteredPanes | Gets the registered set of window panes. | |
GetService | Gets an instance of the requested service. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The ProvideViewAdapterAttribute attribute allows for file or language service specific view adapters. Knowledge of files and language services is reserved for the designer loader, but it is the design surface, not the designer loader, which is responsible for creating the view. So, the designer loader may offer file-specific view adapters through the WindowPaneProviderService. The design surface will look for this service, and if it is found, it will obtain a window pane from it. If the service is not available, a window pane will be created from the globally registered view adapters.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.