StackPanel.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/Dimension für den gewünschten Andockpunktsatz.

alignment
SnapPointsAlignment

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

offset
Single

float

Ausgabeparameter. Der Offset des ersten Andockpunkts.

Gibt zurück

Single

float

Der Abstand zwischen den äquidistischen 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: