VirtualizingPanel.GetScrollUnit(DependencyObject) 方法

定義

取得 ScrollUnit 屬性的值。

public:
 static System::Windows::Controls::ScrollUnit GetScrollUnit(System::Windows::DependencyObject ^ element);
public static System.Windows.Controls.ScrollUnit GetScrollUnit (System.Windows.DependencyObject element);
static member GetScrollUnit : System.Windows.DependencyObject -> System.Windows.Controls.ScrollUnit
Public Shared Function GetScrollUnit (element As DependencyObject) As ScrollUnit

參數

element
DependencyObject

要從其取得 ScrollUnit 附加屬性的項目。

傳回

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

備註

屬性的 ScrollUnit 預設值為 Item

適用於