System.Windows.Forms.FlowDirection Enumeration

Defines constants that specify the direction in which consecutive user interface (UI) elements are placed in a linear layout container

Syntax

public enum FlowDirection

Remarks

The System.Windows.Forms.FlowDirection enumeration describes the flow direction of consecutive UI elements, typically controls, on a design surface or container such as a form. This enumeration is used by linear layout containers such as System.Windows.Forms.FlowLayoutPanel, which stores this information internally in the FlowLayoutPanel.FlowDirection property.

The System.Windows.Forms.FlowDirection determines where a new control is placed by default when it is added to a supporting container. The flow direction of the container, along with the Control.Anchor and Control.Dock properties of each contained control, determine the rearrangement of controls when their container is resized.

The System.Windows.Forms.FlowLayoutPanel control provides a FlowBreak property to its child controls. Setting the value of the FlowBreak property to true causes the System.Windows.Forms.FlowLayoutPanel control to stop laying out controls in the current flow direction and wrap to the next row or column.

Members

Member NameDescription
BottomUp

Elements flow from the bottom of the design surface to the top.

LeftToRight

Elements flow from the left edge of the design surface to the right.

RightToLeft

Elements flow from the right edge of the design surface to the left.

TopDown

Elements flow from the top of the design surface to the bottom.

Requirements

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