ScrollViewer.SetVerticalScrollMode(DependencyObject, ScrollMode) 方法

定义

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

public:
 static void SetVerticalScrollMode(DependencyObject ^ element, ScrollMode verticalScrollMode);
 static void SetVerticalScrollMode(DependencyObject const& element, ScrollMode const& verticalScrollMode);
public static void SetVerticalScrollMode(DependencyObject element, ScrollMode verticalScrollMode);
function setVerticalScrollMode(element, verticalScrollMode)
Public Shared Sub SetVerticalScrollMode (element As DependencyObject, verticalScrollMode As ScrollMode)

参数

element
DependencyObject

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

verticalScrollMode
ScrollMode

要设置的值。

注解

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

适用于

另请参阅