Skip to main content

GetRegularSnapPoints Method

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

Definition​

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

double GetRegularSnapPoints(
Orientation orientation,
SnapPointsAlignment snapPointsAlignment,
out double offset
)
View Source

Parameters​

  Orientation
The orientation for the desired snap point set.
  SnapPointsAlignment
The alignment to use when applying the snap points.
  Double
Out parameter. The offset of the first snap point.

Return Value​

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

See Also​

Reference​

IScrollSnapPointsInfo Interface
Avalonia.Controls.Primitives Namespace