FlowDirection FlowDirection FlowDirection FlowDirection Enum

정의

선형 레이아웃 컨테이너에서 연속되는 UI(사용자 인터페이스) 요소가 배치되는 방향을 지정하는 상수를 정의합니다.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
상속
FlowDirectionFlowDirectionFlowDirectionFlowDirection

필드

BottomUp BottomUp BottomUp BottomUp 3

디자인 화면의 아래쪽에서 위쪽으로 요소를 배치합니다.Elements flow from the bottom of the design surface to the top.

LeftToRight LeftToRight LeftToRight LeftToRight 0

디자인 화면의 왼쪽 가장자리에서 오른쪽으로 요소를 배치합니다.Elements flow from the left edge of the design surface to the right.

RightToLeft RightToLeft RightToLeft RightToLeft 2

디자인 화면의 오른쪽 가장자리에서 왼쪽으로 요소를 배치합니다.Elements flow from the right edge of the design surface to the left.

TopDown TopDown TopDown TopDown 1

디자인 화면의 위쪽에서 아래쪽으로 요소를 배치합니다.Elements flow from the top of the design surface to the bottom.

예제

다음 예제에서는 설정 하는 방법을 보여 줍니다 합니다 FlowDirection 속성을 FlowLayoutPanel 컨트롤입니다.The following example shows how to set the FlowDirection property on a FlowLayoutPanel 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

설명

FlowDirection 열거형 연속 UI 요소의 흐름 방향을 설명, 디자인 화면 또는 폼 같은 컨테이너에 일반적으로 제어 합니다.The FlowDirection enumeration describes the flow direction of consecutive UI elements, typically controls, on a design surface or container such as a form. 이 열거형과 같은 선형 레이아웃 컨테이너에 의해 사용 됩니다 FlowLayoutPanel, 내부에이 정보를 저장 하는 FlowLayoutPanel.FlowDirection 속성.This enumeration is used by linear layout containers such as FlowLayoutPanel, which stores this information internally in the FlowLayoutPanel.FlowDirection property.

FlowDirection 컨테이너에 추가 될 때 기본적으로 새 컨트롤을 배치 되는 위치를 결정 합니다.The FlowDirection determines where a new control is placed by default when it is added to a supporting container. 컨테이너의 흐름 방향을와 함께 합니다 AnchorDock 각 속성에 컨트롤이 포함 된, 해당 컨테이너의 크기를 조정할 때 컨트롤을 다시 정렬을 확인 합니다.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.

FlowLayoutPanel 컨트롤을 FlowBreak 자식 컨트롤에 속성.The FlowLayoutPanel control provides a FlowBreak property to its child controls. 값을 설정 합니다 FlowBreak 속성을 true 하면는 FlowLayoutPanel 현재 흐름 방향 및 다음 행 또는 열으로 줄 바꿈에서 컨트롤 레이아웃을 중지 하는 컨트롤입니다.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.

적용 대상

추가 정보