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
'Declaration
Public Overridable Sub OnDesignerCreated ( _
component As IComponent, _
designer As IDesigner, _
rootDesigner As Boolean _
)
'Usage
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
)
abstract OnDesignerCreated :
component:IComponent *
designer:IDesigner *
rootDesigner:bool -> unit
override OnDesignerCreated :
component:IComponent *
designer:IDesigner *
rootDesigner:bool -> unit
public function OnDesignerCreated(
component : IComponent,
designer : IDesigner,
rootDesigner : boolean
)
Parameters
- component
Type: System.ComponentModel.IComponent
The component that has been created.
- designer
Type: System.ComponentModel.Design.IDesigner
The designer that has been created.
- rootDesigner
Type: System.Boolean
The root designer.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | designer is nulla null reference (Nothing in Visual Basic). |
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