ComponentDesigner.InitializeNewComponent Method (IDictionary)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a newly created component.

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

public virtual void InitializeNewComponent(
	IDictionary defaultValues
)

Parameters

defaultValues
Type: System.Collections.IDictionary

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

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.

.NET Framework
Available since 2.0
Return to top
Show: