共用方式為


ScrollViewer.SetHorizontalScrollBarVisibility 方法

定義

設定所指定專案上 HorizontalScrollBarVisibility 相依性屬性 / ScrollViewer.HorizontalScrollBarVisibility XAML 附加屬性的值。

public:
 static void SetHorizontalScrollBarVisibility(DependencyObject ^ element, ScrollBarVisibility horizontalScrollBarVisibility);
 static void SetHorizontalScrollBarVisibility(DependencyObject const& element, ScrollBarVisibility const& horizontalScrollBarVisibility);
public static void SetHorizontalScrollBarVisibility(DependencyObject element, ScrollBarVisibility horizontalScrollBarVisibility);
function setHorizontalScrollBarVisibility(element, horizontalScrollBarVisibility)
Public Shared Sub SetHorizontalScrollBarVisibility (element As DependencyObject, horizontalScrollBarVisibility As ScrollBarVisibility)

參數

element
DependencyObject

要設定屬性值的項目。

horizontalScrollBarVisibility
ScrollBarVisibility

要設定的值。

備註

如需詳細資訊,請參閱 HorizontalScrollBarVisibility 屬性的

適用於

另請參閱