共用方式為


ControlDesigner.OnSetComponentDefaults 方法

定義

警告

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

警告

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

當設計工具已初始化時呼叫。

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

適用於