ToolBar.Orientation プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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
プロパティ値
ツール バーの向き。 既定値は 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 |
None |