ScrollBar.Orientation Egenskap

Definition

Hämtar eller anger om ScrollBar visas vågrätt eller lodrätt.

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

Egenskapsvärde

Ett Orientation uppräkningsvärde som definierar om ScrollBar visas vågrätt eller lodrätt. Standardvärdet är Vertical.

Exempel

I följande exempel visas hur du Orientation anger egenskapen för en ScrollBar kontroll.

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

Kommentarer

Information om beroendeegenskap

Objekt Value
Identifierarfält OrientationProperty
Metadataegenskaper inställda på true Ingen

Gäller för

Se även