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
Public method WindowPaneProviderService(IServiceProvider) Creates a new WindowPaneProviderService.
Public method WindowPaneProviderService(IServiceProvider, String) Creates a new WindowPaneProviderService for the specified file extension.

Top

Properties

  Name Description
Protected property Extension Gets the file extension.

Top

Methods

  Name Description
Public method CreateWindowPane(DesignSurface) Creates a window pane for the specified design surface.
Protected method CreateWindowPane(Type, DesignSurface) Creates a designer window pane for the specified type of window pane.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetRegisteredPanes Gets the registered set of window panes.
Protected method GetService Gets an instance of the requested service.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Shell.Design Namespace