StackPanel.GetRegularSnapPoints(Orientation, SnapPointsAlignment, Single) StackPanel.GetRegularSnapPoints(Orientation, SnapPointsAlignment, Single) StackPanel.GetRegularSnapPoints(Orientation, SnapPointsAlignment, Single) StackPanel.GetRegularSnapPoints(Orientation, SnapPointsAlignment, Single) Method

Definition

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

public : float GetRegularSnapPoints(Orientation orientation, SnapPointsAlignment alignment, float offset)
float GetRegularSnapPoints(Orientation orientation, SnapPointsAlignment alignment, Single const& offset) const;
public float GetRegularSnapPoints(Orientation orientation, SnapPointsAlignment alignment, Single offset)
Public Function GetRegularSnapPoints(orientation As Orientation, alignment As SnapPointsAlignment, offset As Single) As float

Parameters

orientation
Orientation Orientation

The orientation/dimension for the desired snap point set.

alignment
SnapPointsAlignment SnapPointsAlignment

The alignment to use when applying the snap points.

offset
Single Single

Out parameter. The offset of the first snap point.

Returns

float float

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