共用方式為


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

要設定的屬性值。

適用於