ScrollViewer.SetVerticalScrollBarVisibility 方法

定义

VerticalScrollBarVisibility 依赖属性的值设为给定元素。

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

参数

element
DependencyObject

要在其上设置属性值的元素。

verticalScrollBarVisibility
ScrollBarVisibility

要设置的属性值。

适用于