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
'宣言
Public Overridable Sub OnComponentCreated ( _
component As IComponent _
)
'使用
Dim instance As DesignSurfaceExtension
Dim component As IComponent
instance.OnComponentCreated(component)
public virtual void OnComponentCreated(
IComponent component
)
public:
virtual void OnComponentCreated(
IComponent^ component
)
public function OnComponentCreated(
component : IComponent
)
Parameters
component
Type: System.ComponentModel.IComponentThe component that has been created.
Remarks
You may freely change metadata of the component at this time. The default implementation does nothing.
Permissions
- 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
Concepts
Reference
DesignSurfaceExtension Members
Microsoft.VisualStudio.Shell.Design Namespace