Sdílet prostřednictvím


ScrollBar.Orientation Vlastnost

Definice

Získá nebo nastaví, zda ScrollBar je zobrazen vodorovně nebo svisle.

public:
 property System::Windows::Controls::Orientation Orientation { System::Windows::Controls::Orientation get(); void set(System::Windows::Controls::Orientation value); };
public System.Windows.Controls.Orientation Orientation { get; set; }
member this.Orientation : System.Windows.Controls.Orientation with get, set
Public Property Orientation As Orientation

Hodnota vlastnosti

Hodnota Orientation výčtu, která definuje, zda ScrollBar je zobrazen vodorovně nebo svisle. Výchozí hodnota je Vertical.

Příklady

Následující příklad ukazuje, jak nastavit Orientation vlastnost ScrollBar ovládacího prvku.

myScrollBar.Orientation = Orientation.Horizontal;
myScrollBar.Orientation = Orientation.Horizontal
<ScrollBar Name="myScrollBar" Orientation="Horizontal"/>

Poznámky

Informace o vlastnosti závislosti

Položka Hodnota
Pole Identifikátor OrientationProperty
Vlastnosti metadat nastavené na true None

Platí pro

Viz také