ToolBar.Orientation 속성

정의

ToolBar의 방향을 가져옵니다.

public:
 property System::Windows::Controls::Orientation Orientation { System::Windows::Controls::Orientation get(); };
public System.Windows.Controls.Orientation Orientation { get; }
member this.Orientation : System.Windows.Controls.Orientation
Public ReadOnly Property Orientation As Orientation

속성 값

Orientation

도구 모음 방향입니다. 기본값은 Horizontal입니다.

예제

다음 예제에서는 확인 하는 방법을 보여 줍니다 여부를 ToolBar 는 세로입니다.

if (tb1.Orientation == Orientation.Vertical)
{
    btnText.Content = "This is a vertical toolbar.";
}
If tb1.Orientation = Orientation.Vertical Then
    btnText.Content = "This is a vertical toolbar."
End If

설명

이 속성의 부모에서 해당 값을 가져옵니다 ToolBarTray합니다.

종속성 속성 정보

식별자 필드 OrientationProperty
메타 데이터 속성 설정 true 없음

적용 대상

추가 정보