Share via


OrientedVirtualizingPanel.GetRegularSnapPoints 方法

定义

获取指定方向和对齐方式的常规对齐点之间的距离。

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

参数

orientation
Orientation

所需吸附点集的方向。

alignment
SnapPointsAlignment

应用吸附点时使用的对齐方式。

offset
Single

float

输出参数。 第一个吸附点的偏移量。

返回

Single

float

等距吸附点之间的距离。 当不存在吸附点时,返回 0。

实现

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

适用于