System.Windows.Forms.Layout.LayoutEngine.Layout Method

Requests that the layout engine perform a layout operation.

Syntax

public virtual bool Layout (object container, System.Windows.Forms.LayoutEventArgs layoutEventArgs)

Parameters

container
The container on which the layout engine will operate.
layoutEventArgs
An event argument from a System.Windows.Forms.Control.Layout event.

Returns

true if layout should be performed again by the parent of container; otherwise, false.

Remarks

This method is called when the layout engine is to perform a layout operation on the container parameter. You can check the value of the System.Windows.Forms.LayoutEventArgs.AffectedProperty, System.Windows.Forms.LayoutEventArgs.AffectedComponent, and System.Windows.Forms.LayoutEventArgs.AffectedControl properties on layoutEventArgs to decide if a layout operation is necessary.

Requirements

Namespace: System.Windows.Forms.Layout
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0