Freigeben über


OrientedVirtualizingPanel.GetRegularSnapPoints Methode

Definition

Ruft den Abstand zwischen regulären Andockpunkten für eine angegebene Ausrichtung und Ausrichtung ab.

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 für den gewünschten Ausrichtungspunkt.

alignment
SnapPointsAlignment

Die Ausrichtung, die beim Anwenden der Andockpunkte verwendet werden soll.

offset
Single

float

Out-Parameter. Der Offset des ersten Andockpunkts.

Gibt zurück

Single

float

Der Abstand zwischen den äquidistanten Andockpunkten. Gibt 0 zurück, wenn keine Andockpunkte vorhanden sind.

Implementiert

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

Gilt für: