FlowDirection Enumeración

Definición

Define constantes que especifican la dirección en la que se colocan los elementos consecutivos de la interfaz de usuario (IU) en un contenedor de diseño lineal.Defines constants that specify the direction in which consecutive user interface (UI) elements are placed in a linear layout container.

public enum class FlowDirection
public enum FlowDirection
type FlowDirection = 
Public Enum FlowDirection
Herencia
FlowDirection

Campos

BottomUp 3

Los elementos fluyen de la parte inferior de la superficie de diseño a la parte superior.Elements flow from the bottom of the design surface to the top.

LeftToRight 0

Los elementos fluyen del borde izquierdo de la superficie de diseño al borde derecho.Elements flow from the left edge of the design surface to the right.

RightToLeft 2

Los elementos fluyen del borde derecho de la superficie de diseño al borde izquierdo.Elements flow from the right edge of the design surface to the left.

TopDown 1

Los elementos fluyen de la parte superior de la superficie de diseño a la parte inferior.Elements flow from the top of the design surface to the bottom.

Ejemplos

En el ejemplo siguiente se muestra cómo establecer la propiedad FlowDirection en un control FlowLayoutPanel.The following example shows how to set the FlowDirection property on a FlowLayoutPanel control. Este ejemplo de código forma parte de un ejemplo mayor proporcionado para el control FlowLayoutPanel.This code example is part of a larger example provided for the FlowLayoutPanel control.

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;
    }
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;
}
Private Sub flowTopDownBtn_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles flowTopDownBtn.CheckedChanged

    Me.FlowLayoutPanel1.FlowDirection = FlowDirection.TopDown

End Sub

Private Sub flowBottomUpBtn_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles flowBottomUpBtn.CheckedChanged

    Me.FlowLayoutPanel1.FlowDirection = FlowDirection.BottomUp

End Sub

Private Sub flowLeftToRight_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles flowLeftToRight.CheckedChanged

    Me.FlowLayoutPanel1.FlowDirection = FlowDirection.LeftToRight

End Sub

Private Sub flowRightToLeftBtn_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles flowRightToLeftBtn.CheckedChanged

    Me.FlowLayoutPanel1.FlowDirection = FlowDirection.RightToLeft

End Sub

Comentarios

La enumeración FlowDirection describe la dirección del flujo de elementos consecutivos de la interfaz de usuario, normalmente controles, en una superficie de diseño o un contenedor como un formulario.The FlowDirection enumeration describes the flow direction of consecutive UI elements, typically controls, on a design surface or container such as a form. Esta enumeración la usan los contenedores de diseño lineal como FlowLayoutPanel, que almacena esta información internamente en la propiedad FlowLayoutPanel.FlowDirection.This enumeration is used by linear layout containers such as FlowLayoutPanel, which stores this information internally in the FlowLayoutPanel.FlowDirection property.

El FlowDirection determina dónde se coloca un nuevo control de forma predeterminada cuando se agrega a un contenedor auxiliar.The FlowDirection determines where a new control is placed by default when it is added to a supporting container. La dirección de flujo del contenedor, junto con las propiedades Anchor y Dock de cada control contenido, determinan la reorganización de los controles cuando se cambia el tamaño de su contenedor.The flow direction of the container, along with the Anchor and Dock properties of each contained control, determine the rearrangement of controls when their container is resized.

El control FlowLayoutPanel proporciona una propiedad FlowBreak a sus controles secundarios.The FlowLayoutPanel control provides a FlowBreak property to its child controls. Al establecer el valor de la propiedad FlowBreak en true, el control FlowLayoutPanel deja de diseñar los controles en la dirección del flujo actual y se ajustan a la siguiente fila o columna.Setting the value of the FlowBreak property to true causes the FlowLayoutPanel control to stop laying out controls in the current flow direction and wrap to the next row or column.

Se aplica a

Consulte también: