Uređivanje

Dijeli putem


ComponentDesigner.InitializeNewComponent(IDictionary) Method

Definition

Initializes a newly created component.

public:
 virtual void InitializeNewComponent(System::Collections::IDictionary ^ defaultValues);
public virtual void InitializeNewComponent (System.Collections.IDictionary defaultValues);
public virtual void InitializeNewComponent (System.Collections.IDictionary? defaultValues);
abstract member InitializeNewComponent : System.Collections.IDictionary -> unit
override this.InitializeNewComponent : System.Collections.IDictionary -> unit
Public Overridable Sub InitializeNewComponent (defaultValues As IDictionary)

Parameters

defaultValues
IDictionary

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

Implements

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.

Applies to