Export (0) Print
Expand All

ComponentDesigner.InitializeNewComponent Method

Initializes a newly created component.

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

abstract InitializeNewComponent : 
        defaultValues:IDictionary -> unit  
override InitializeNewComponent : 
        defaultValues:IDictionary -> unit


Type: System.Collections.IDictionary

A name/value dictionary of default values to apply to properties. May be a null reference (Nothing in Visual Basic) 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft