다음을 통해 공유


DesignSurfaceExtension.OnDesignerCreated Method (IDesigner)

Note: This API is now obsolete. The non-obsolete alternative is OnDesignerCreated.

This method is called when a new designer is created.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
<ObsoleteAttribute("Override the version of OnDesignerCreated that takes a component, designer and boolean flag")> _
Public Overridable Sub OnDesignerCreated ( _
    designer As IDesigner _
)
[ObsoleteAttribute("Override the version of OnDesignerCreated that takes a component, designer and boolean flag")]
public virtual void OnDesignerCreated(
    IDesigner designer
)
[ObsoleteAttribute(L"Override the version of OnDesignerCreated that takes a component, designer and boolean flag")]
public:
virtual void OnDesignerCreated(
    IDesigner^ designer
)
[<ObsoleteAttribute("Override the version of OnDesignerCreated that takes a component, designer and boolean flag")>]
abstract OnDesignerCreated : 
        designer:IDesigner -> unit 
[<ObsoleteAttribute("Override the version of OnDesignerCreated that takes a component, designer and boolean flag")>]
override OnDesignerCreated : 
        designer:IDesigner -> unit
public function OnDesignerCreated(
    designer : IDesigner
)

Parameters

  • designer
    Type: IDesigner

    The designer that has been created.

Remarks

You may freely change metadata of the designer at this time. The default implementation does nothing.

.NET Framework Security

See Also

Reference

DesignSurfaceExtension Class

OnDesignerCreated Overload

Microsoft.VisualStudio.Shell.Design Namespace

DesignSurfaceExtensionAttribute

DesignSurfaceExtension

DesignSurface

IDesigner

IDesignerHost

Other Resources

Extending Design-Time Support