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 die gewünschte Ausrichtungspunktmenge.

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: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: