共用方式為


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

適用於

另請參閱