共用方式為


ComponentDesigner.InitializeNonDefault 方法

定義

警告

This method has been deprecated. Use InitializeExistingComponent instead. http://go.microsoft.com/fwlink/?linkid=14202

警告

This method has been deprecated. Use InitializeExistingComponent instead. https://go.microsoft.com/fwlink/?linkid=14202

初始化已初始化為預設值以外設定的匯入元件設定。

public:
 virtual void InitializeNonDefault();
public virtual void InitializeNonDefault ();
[System.Obsolete("This method has been deprecated. Use InitializeExistingComponent instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
public virtual void InitializeNonDefault ();
[System.Obsolete("This method has been deprecated. Use InitializeExistingComponent instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
public virtual void InitializeNonDefault ();
abstract member InitializeNonDefault : unit -> unit
override this.InitializeNonDefault : unit -> unit
[<System.Obsolete("This method has been deprecated. Use InitializeExistingComponent instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member InitializeNonDefault : unit -> unit
override this.InitializeNonDefault : unit -> unit
[<System.Obsolete("This method has been deprecated. Use InitializeExistingComponent instead.  https://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member InitializeNonDefault : unit -> unit
override this.InitializeNonDefault : unit -> unit
Public Overridable Sub InitializeNonDefault ()
屬性

備註

當設計工具與不在默認狀態的控件相關聯時,即會呼叫這個方法,例如您貼上或以拖放作業移至設計工具的控件。 這個方法提供實作者修改或遮蔽元件屬性的機會,而不是將元件的屬性初始化為其預設值。 這個方法會在其他初始化函式之後呼叫。

適用於