FlowLayoutPanel.FlowDirection Proprietà

Definizione

Ottiene o imposta un valore che indica la direzione del flusso del controllo FlowLayoutPanel.

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

Valore della proprietà

FlowDirection

Uno dei valori FlowDirection che indicano la direzione del posizionamento consecutivo dei controlli nel pannello. Il valore predefinito è LeftToRight.

Esempio

Nell'esempio di codice seguente viene impostato il valore di a seconda dell'oggetto FlowDirection selezionato 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;
}

Commenti

La FlowDirection proprietà è la proprietà predefinita per la FlowLayoutPanel classe.

Si applica a

Prodotto Versioni
.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

Vedi anche