ItemsPresenter.GetRegularSnapPoints Methode

Definition

Gibt einen ursprünglichen Offset und ein Intervall für äquidistante Einrastpunkte für die angegebene Ausrichtung zurück.

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

Die Ausrichtung der angeforderten Einrastpunkte.

alignment
SnapPointsAlignment

Die Ausrichtung, die vom Aufrufer beim Anwenden der angeforderten Einrastpunkte verwendet wird.

offset
Single

float

Der Offset des ersten Anrastpunkts.

Gibt zurück

Single

float

Das Intervall zwischen äquidistanten Einrastpunkten für die angegebene Ausrichtung oder 0, wenn keine Einrastpunkte vorhanden sind.

Implementiert

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@)

Gilt für: