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 ()
属性

注解

当设计器与未处于其默认状态的控件(例如通过拖放操作粘贴或移动的控件)相关联时,将调用此方法。 此方法为实现者提供了修改或隐藏组件属性的机会,而不是将组件的属性初始化为其默认值。 此方法在其他初始化函数之后调用。

适用于