ScrollBar.Orientation Propiedad

Definición

Obtiene o establece si ScrollBar se muestra vertical u horizontalmente.

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

Valor de propiedad

Orientation

Valor de enumeración Orientation que define si ScrollBar se muestra horizontal o verticalmente. De manera predeterminada, es Vertical.

Ejemplos

En el ejemplo siguiente se muestra cómo establecer la Orientation propiedad para un ScrollBar control .

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

Comentarios

Información sobre propiedades de dependencia

Campo identificador OrientationProperty
Propiedades de metadatos establecidas en true Ninguno

Se aplica a

Consulte también