LayoutEngine.InitLayout(Object, BoundsSpecified) 方法

定义

初始化布局引擎。Initializes the layout engine.

public:
 virtual void InitLayout(System::Object ^ child, System::Windows::Forms::BoundsSpecified specified);
public virtual void InitLayout (object child, System.Windows.Forms.BoundsSpecified specified);
abstract member InitLayout : obj * System.Windows.Forms.BoundsSpecified -> unit
override this.InitLayout : obj * System.Windows.Forms.BoundsSpecified -> unit
Public Overridable Sub InitLayout (child As Object, specified As BoundsSpecified)

参数

child
Object

布局引擎将在其上执行操作的容器。The container on which the layout engine will operate.

specified
BoundsSpecified

用于定义容器大小和位置的边界。The bounds defining the container's size and position.

异常

child 不是一个 LayoutEngine 可在其上执行布局的类型。child is not a type on which LayoutEngine can perform layout.

注解

可以选择在InitLayout方法中提供初始化逻辑。Optionally provide initialization logic in the InitLayout method.

继承者说明

重写InitLayout(Object, BoundsSpecified)方法以提供自定义初始化行为。Override the InitLayout(Object, BoundsSpecified) method to provide your custom initialization behavior.

适用于

另请参阅