IComponentInitializer.InitializeNewComponent(IDictionary) 方法

定義

使用一組建議值初始化新元件。

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

參數

defaultValues
IDictionary

具有預設屬性值 (名稱/值組) 的字典,使用該字典可以初始化元件的狀態。

備註

建立新的元件之後,會 InitializeNewComponent 呼叫 方法。 它通常是由工具箱專案本身呼叫,並用來設定元件的預設值。

如果未指定預設值,則此字典可能 null 為 。 如果字典為 null,則元件屬性應該保留在其隱含默認狀態中。

適用於

另請參閱