Share via


VirtualizingPanel.SetScrollUnit(DependencyObject, ScrollUnit) 方法

定義

設定 ScrollUnit 附加屬性。

public:
 static void SetScrollUnit(System::Windows::DependencyObject ^ element, System::Windows::Controls::ScrollUnit value);
public static void SetScrollUnit (System.Windows.DependencyObject element, System.Windows.Controls.ScrollUnit value);
static member SetScrollUnit : System.Windows.DependencyObject * System.Windows.Controls.ScrollUnit -> unit
Public Shared Sub SetScrollUnit (element As DependencyObject, value As ScrollUnit)

參數

element
DependencyObject

要設定屬性的物件。

value
ScrollUnit

表示捲動是以集合中項目數還是以像素數來測量的值。

適用於