ScrollViewer.SetVerticalScrollBarVisibility 方法

定义

设置指定元素上的 VerticalScrollBarVisibility 依赖属性/ ScrollViewer.VerticalScrollBarVisibility XAML 附加属性的值。

public:
 static void SetVerticalScrollBarVisibility(DependencyObject ^ element, ScrollBarVisibility verticalScrollBarVisibility);
 static void SetVerticalScrollBarVisibility(DependencyObject const& element, ScrollBarVisibility const& verticalScrollBarVisibility);
public static void SetVerticalScrollBarVisibility(DependencyObject element, ScrollBarVisibility verticalScrollBarVisibility);
function setVerticalScrollBarVisibility(element, verticalScrollBarVisibility)
Public Shared Sub SetVerticalScrollBarVisibility (element As DependencyObject, verticalScrollBarVisibility As ScrollBarVisibility)

参数

element
DependencyObject

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

verticalScrollBarVisibility
ScrollBarVisibility

要设置的值。

注解

有关详细信息,请参阅 VerticalScrollBarVisibility 属性。

适用于

另请参阅