DesignSurfaceExtension.OnDesignerCreated Method (IDesigner)
Note: This API is now obsolete. The non-obsolete alternative is OnDesignerCreated(IComponent, IDesigner, Boolean).
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
'Déclaration
<ObsoleteAttribute("Override the version of OnDesignerCreated that takes a component, designer and boolean flag")> _
Public Overridable Sub OnDesignerCreated ( _
designer As IDesigner _
)
'Utilisation
Dim instance As DesignSurfaceExtension
Dim designer As IDesigner
instance.OnDesignerCreated(designer)
[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: System.ComponentModel.Design.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
- 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.
See Also
Reference
DesignSurfaceExtension Members
Microsoft.VisualStudio.Shell.Design Namespace
DesignSurfaceExtensionAttribute