FlowLayoutPanel.FlowDirection Propiedad

Definición

Obtiene o establece un valor que indica la dirección de flujo del control FlowLayoutPanel.

C#
public System.Windows.Forms.FlowDirection FlowDirection { get; set; }

Valor de propiedad

FlowDirection

Uno de los valores de FlowDirection, que indica la dirección de posición consecutiva de los controles del panel. De manera predeterminada, es LeftToRight.

Ejemplos

En el ejemplo de código siguiente se establece el valor de en función de FlowDirection la opción seleccionada RadioButton.

C#
private void flowTopDownBtn_CheckedChanged(
    System.Object sender, 
    System.EventArgs e)
{
    this.FlowLayoutPanel1.FlowDirection = FlowDirection.TopDown;
}

private void flowBottomUpBtn_CheckedChanged(
    System.Object sender, 
    System.EventArgs e)
{
    this.FlowLayoutPanel1.FlowDirection = FlowDirection.BottomUp;
}

private void flowLeftToRight_CheckedChanged(
    System.Object sender, 
    System.EventArgs e)
{
    this.FlowLayoutPanel1.FlowDirection = FlowDirection.LeftToRight;
}

private void flowRightToLeftBtn_CheckedChanged(
    System.Object sender, 
    System.EventArgs e)
{
    this.FlowLayoutPanel1.FlowDirection = FlowDirection.RightToLeft;
}

Comentarios

La FlowDirection propiedad es la propiedad predeterminada para la FlowLayoutPanel clase .

Se aplica a

Producto Versiones
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

Consulte también