Skip to main content

GetRegularSnapPoints Method

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

Definition​

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

public double GetRegularSnapPoints(
Orientation orientation,
SnapPointsAlignment snapPointsAlignment,
out double offset
)

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.

Implements​

IScrollSnapPointsInfo.GetRegularSnapPoints(Orientation, SnapPointsAlignment, Double)

See Also​

Reference​

StackPanel Class
Avalonia.Controls Namespace