LoopingSelectorPanel.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

表示指定方向的常规对齐点的数字的只读集合;如果没有常规对齐点,则为空集合。

实现

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

适用于