FlowDirection 열거형
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
연속된 UI(사용자 인터페이스) 요소가 선형 레이아웃 컨테이너에 배치되는 방향을 지정하는 상수를 정의합니다.
public enum class FlowDirection
public enum FlowDirection
type FlowDirection =
Public Enum FlowDirection
- 상속
필드
| Name | 값 | Description |
|---|---|---|
| LeftToRight | 0 | 요소는 디자인 화면의 왼쪽 가장자리에서 오른쪽으로 흐릅니다. |
| TopDown | 1 | 요소는 디자인 화면의 위쪽에서 아래쪽으로 흐릅니다. |
| RightToLeft | 2 | 요소는 디자인 화면의 오른쪽 가장자리에서 왼쪽으로 흐릅니다. |
| BottomUp | 3 | 요소는 디자인 화면의 아래쪽에서 위쪽으로 흐릅니다. |
예제
다음 예제에서는 컨트롤에 FlowDirection 속성을 설정 하는 방법을 보여 있습니다 FlowLayoutPanel . 이 코드 예제는 컨트롤에 제공된 더 큰 예제의 FlowLayoutPanel 일부입니다.
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 요소(일반적으로 컨트롤)의 흐름 방향을 설명합니다. 이 열거형은 이 정보를 속성에 내부적으로 저장하는 선형 레이아웃 컨테이너(예: FlowLayoutPanel선형 레이아웃 컨테이너)에서 FlowLayoutPanel.FlowDirection 사용됩니다.
새 FlowDirection 컨트롤이 지원 컨테이너에 추가되면 기본적으로 배치되는 위치를 결정합니다. 컨테이너 Anchor 의 흐름 방향과 Dock 포함된 각 컨트롤의 속성은 컨테이너 크기가 조정될 때 컨트롤의 다시 정렬을 결정합니다.
컨트롤은 FlowLayoutPanel 자식 컨트롤에 속성을 제공합니다 FlowBreak . 속성 값을 FlowBreak 설정하면 true 컨트롤이 FlowLayoutPanel 현재 흐름 방향으로 컨트롤 배치를 중지하고 다음 행 또는 열로 래핑됩니다.