共用方式為


ScrollViewer.SetHorizontalScrollBarVisibility 方法

定義

HorizontalScrollBarVisibility 相依性屬性的值設定為指定的項目。

public:
 static void SetHorizontalScrollBarVisibility(System::Windows::DependencyObject ^ element, System::Windows::Controls::ScrollBarVisibility horizontalScrollBarVisibility);
public static void SetHorizontalScrollBarVisibility (System.Windows.DependencyObject element, System.Windows.Controls.ScrollBarVisibility horizontalScrollBarVisibility);
static member SetHorizontalScrollBarVisibility : System.Windows.DependencyObject * System.Windows.Controls.ScrollBarVisibility -> unit
Public Shared Sub SetHorizontalScrollBarVisibility (element As DependencyObject, horizontalScrollBarVisibility As ScrollBarVisibility)

參數

element
DependencyObject

要設定屬性值的項目。

horizontalScrollBarVisibility
ScrollBarVisibility

要設定的屬性值。

適用於