다음을 통해 공유


TrackBar.Orientation Property

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

Namespace:  Microsoft.Office.Tools.Word.Controls
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property Orientation As Orientation
public Orientation Orientation { get; set; }

Property Value

Type: System.Windows.Forms.Orientation
One of the Orientation values.

Exceptions

Exception Condition
InvalidEnumArgumentException

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.

.NET Framework Security

See Also

Reference

TrackBar Class

Microsoft.Office.Tools.Word.Controls Namespace