TrackBar.Orientation Property

Definition

Gets or sets a value indicating the horizontal or vertical orientation of the track bar.

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

Property Value

One of the Orientation values.

Exceptions

The assigned value is not one of the Orientation values.

Remarks

When the Orientation property is set to the System.Windows.Forms.Orientation.Horizontal, the scroll box moves from left to right as the Value increases. When the Orientation property is set to System.Windows.Forms.Orientation.Vertical, the scroll box moves from bottom to top as the Value increases.

Applies to