Compartir a través de


DesignSurfaceExtension.OnComponentCreated Method

This method is called when a new component is created but before that component is added to the designer.

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

Syntax

'Declaración
Public Overridable Sub OnComponentCreated ( _
    component As IComponent _
)
'Uso
Dim instance As DesignSurfaceExtension
Dim component As IComponent

instance.OnComponentCreated(component)
public virtual void OnComponentCreated(
    IComponent component
)
public:
virtual void OnComponentCreated(
    IComponent^ component
)
abstract OnComponentCreated : 
        component:IComponent -> unit 
override OnComponentCreated : 
        component:IComponent -> unit 
public function OnComponentCreated(
    component : IComponent
)

Parameters

Remarks

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

.NET Framework Security

See Also

Reference

DesignSurfaceExtension Class

DesignSurfaceExtension Members

Microsoft.VisualStudio.Shell.Design Namespace

DesignSurfaceExtensionAttribute

DesignSurfaceExtension

DesignSurface

IDesigner

IDesignerHost

Other Resources

Extending Design-Time Support