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)
- C#
- VB
- F#
public double GetRegularSnapPoints(
Orientation orientation,
SnapPointsAlignment snapPointsAlignment,
out double offset
)
Public Function GetRegularSnapPoints (
orientation As Orientation,
snapPointsAlignment As SnapPointsAlignment,
<OutAttribute> ByRef offset As Double
) As Double
abstract GetRegularSnapPoints :
orientation : Orientation *
snapPointsAlignment : SnapPointsAlignment *
offset : float byref -> float
override GetRegularSnapPoints :
orientation : Orientation *
snapPointsAlignment : SnapPointsAlignment *
offset : float byref -> float
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.