Orientation 枚举

定义

定义控件或布局可具有的不同方向。Defines the different orientations that a control or layout can have.

public enum class Orientation
[System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)]
public enum Orientation
type Orientation = 
Public Enum Orientation
继承
Orientation
属性

字段

Horizontal 0

控件或布局应为水平方向。Control or layout should be horizontally oriented.

Vertical 1

控件或布局应为垂直方向。Control or layout should be vertically oriented.

示例

此示例演示如何使用Orientation枚举值进行垂直。 ScrollBarThis example shows how to use an Orientation enumeration value to make a vertical ScrollBar.

<ScrollBar Height="200" Orientation="Vertical"/>

适用于