共用方式為


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 屬性。

適用於

另請參閱