Udostępnij za pośrednictwem


OrientedVirtualizingPanel.GetRegularSnapPoints Method

Definition

Gets the distance between regular snap points for a specified orientation and alignment.

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

Parameters

orientation
Orientation

The orientation for the desired snap point set.

alignment
SnapPointsAlignment

The alignment to use when applying the snap points.

offset
Single

float

Out parameter. The offset of the first snap point.

Returns

Single

float

The distance between the equidistant snap points. Returns 0 when no snap points are present.

Implements

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

Applies to