Bagikan melalui


ItemsPresenter.GetRegularSnapPoints Metode

Definisi

Mengembalikan offset dan interval asli untuk titik snap equidistant untuk orientasi yang ditentukan.

public:
 virtual float GetRegularSnapPoints(Orientation orientation, SnapPointsAlignment alignment, [Out] float & offset) = GetRegularSnapPoints;
float GetRegularSnapPoints(Orientation const& orientation, SnapPointsAlignment const& alignment, [Out] float & offset);
public float GetRegularSnapPoints(Orientation orientation, SnapPointsAlignment alignment, out float offset);
Public Function GetRegularSnapPoints (orientation As Orientation, alignment As SnapPointsAlignment, ByRef offset As Single) As Single

Parameter

orientation
Orientation

Orientasi titik snap yang diminta.

alignment
SnapPointsAlignment

Perataan yang digunakan oleh pemanggil saat menerapkan titik snap yang diminta.

offset
Single

float

Offset titik snap pertama.

Mengembalikan

Single

float

Interval antara titik rekam jepret yang sama untuk orientasi yang ditentukan atau 0 ketika tidak ada titik snap.

Penerapan

M:Windows.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo.GetRegularSnapPoints(Windows.UI.Xaml.Controls.Orientation,Windows.UI.Xaml.Controls.Primitives.SnapPointsAlignment,System.Single@) M:Windows.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo.GetRegularSnapPoints(Windows.UI.Xaml.Controls.Orientation,Windows.UI.Xaml.Controls.Primitives.SnapPointsAlignment,float@)

Berlaku untuk