Dela via


ScrollBar.Orientation Property

Definition

Gets or sets a value that indicates whether the ScrollBar is displayed horizontally or vertically.

public:
 property Orientation Orientation { Orientation get(); void set(Orientation value); };
Orientation Orientation();

void Orientation(Orientation value);
public Orientation Orientation { get; set; }
var orientation = scrollBar.orientation;
scrollBar.orientation = orientation;
Public Property Orientation As Orientation
<ScrollBar Orientation="Horizontal"/>
-or-
<ScrollBar Orientation="Vertical"/>

Property Value

An Orientation enumeration value that defines whether the ScrollBar is displayed horizontally or vertically. The default is Horizontal. Specific control templates might change this value, which would cause the templated value to be the apparent runtime default.

Applies to