TrackBar.Orientation Property (2007 System)
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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Property Orientation As Orientation
'Usage
Dim instance As TrackBar
Dim value As Orientation
value = instance.Orientation
instance.Orientation = value
public Orientation Orientation { get; set; }
public:
property Orientation Orientation {
Orientation get ();
void set (Orientation value);
}
public function get Orientation () : Orientation
public function set Orientation (value : Orientation)
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 Orientation.Horizontal, the scroll box moves from left to right as the Value increases. When the Orientation property is set to Orientation.Vertical, the scroll box moves from bottom to top as the Value increases.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.