ComponentDesignerInitializeNewComponent Method
 

Initializes a newly created component.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

Syntax
public virtual void InitializeNewComponent(
	IDictionary defaultValues
)
public:
virtual void InitializeNewComponent(
	IDictionary^ defaultValues
)
abstract InitializeNewComponent : 
        defaultValues:IDictionary -> unit
override InitializeNewComponent : 
        defaultValues:IDictionary -> unit
Public Overridable Sub InitializeNewComponent (
	defaultValues As IDictionary
)

Parameters

defaultValues
Type:

A name/value dictionary of default values to apply to properties. May be null if no default values are specified.

Remarks

The InitializeNewComponent method is called when a component is first initialized, typically after being first added to a design surface.

You may perform any necessary initialization of this component, and you may ignore the defaultValues dictionary altogether.

The default implementation of this method does nothing.

Version Information
.NET Framework
Available since 2.0
Return to top