FlowDirection Sabit listesi

Tanım

Ardışık kullanıcı arabirimi (UI) öğelerinin doğrusal düzen kapsayıcısında yerleştirileceği yönü belirten sabitleri tanımlar.

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

Alanlar

BottomUp 3

Öğeler tasarım yüzeyinin altından üste doğru akar.

LeftToRight 0

Öğeler tasarım yüzeyinin sol kenarından sağa doğru akar.

RightToLeft 2

Öğeler tasarım yüzeyinin sağ kenarından sola doğru akar.

TopDown 1

Öğeler tasarım yüzeyinin üstünden alta doğru akar.

Örnekler

Aşağıdaki örnekte, bir FlowLayoutPanel denetimde özelliğinin FlowDirection nasıl ayarlanacağı gösterilmektedir. Bu kod örneği, denetim için FlowLayoutPanel sağlanan daha büyük bir örneğin bir parçasıdır.

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

Açıklamalar

Numaralandırma, FlowDirection bir tasarım yüzeyinde veya form gibi bir kapsayıcıda ardışık ui öğelerinin akış yönünü açıklar. Bu numaralandırma, gibi FlowLayoutPanelbu bilgileri özelliğinde FlowLayoutPanel.FlowDirection dahili olarak depolayan doğrusal düzen kapsayıcıları tarafından kullanılır.

, FlowDirection yeni bir denetimin bir destekleyici kapsayıcıya eklendiğinde varsayılan olarak nereye yerleştirileceğini belirler. Kapsayıcının akış yönü, içindeki her denetimin Anchor ve Dock özellikleriyle birlikte, kapsayıcıları yeniden boyutlandırıldığında denetimlerin yeniden düzenlenmesini belirler.

Denetim, FlowLayoutPanel alt denetimlerine bir FlowBreak özellik sağlar. özelliğinin true değerini olarak ayarlamak, denetimin FlowBreak FlowLayoutPanel geçerli akış yönünde denetimleri yerleştirmeyi durdurmasına ve sonraki satıra veya sütuna kaydırmasına neden olur.

Şunlara uygulanır

Ayrıca bkz.