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

要设置的属性值。

适用于