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.

適用於

另請參閱