ScrollSnapPoint(Double, ScrollSnapPointsAlignment) 构造函数

定义

使用指定的值和对齐方式初始化 ScrollSnapPoint 类的新实例。

public:
 ScrollSnapPoint(double snapPointValue, ScrollSnapPointsAlignment alignment);
 ScrollSnapPoint(double const& snapPointValue, ScrollSnapPointsAlignment const& alignment);
public ScrollSnapPoint(double snapPointValue, ScrollSnapPointsAlignment alignment);
function ScrollSnapPoint(snapPointValue, alignment)
Public Sub New (snapPointValue As Double, alignment As ScrollSnapPointsAlignment)

参数

snapPointValue
Double

double

对齐点相对于视区原点的位置。

alignment
ScrollSnapPointsAlignment

一个 值,该值指示对齐点相对于视区的位置。

适用于