DesignSurfaceExtension.OnDesignerCreated Method (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

'宣言
Public Overridable Sub OnDesignerCreated ( _
    component As IComponent, _
    designer As IDesigner, _
    rootDesigner As Boolean _
)
'使用
Dim instance As DesignSurfaceExtension
Dim component As IComponent
Dim designer As IDesigner
Dim rootDesigner As Boolean

instance.OnDesignerCreated(component, _
    designer, rootDesigner)
public virtual void OnDesignerCreated(
    IComponent component,
    IDesigner designer,
    bool rootDesigner
)
public:
virtual void OnDesignerCreated(
    IComponent^ component, 
    IDesigner^ designer, 
    bool rootDesigner
)
public function OnDesignerCreated(
    component : IComponent, 
    designer : IDesigner, 
    rootDesigner : boolean
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

designer is a null reference (Nothing in Visual Basic).

Remarks

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

Permissions

See Also

Concepts

Extending Design-Time Support

Reference

DesignSurfaceExtension Class

DesignSurfaceExtension Members

OnDesignerCreated Overload

Microsoft.VisualStudio.Shell.Design Namespace

DesignSurfaceExtensionAttribute

DesignSurfaceExtension

DesignSurface

IDesigner

IDesignerHost