ScrollSnapPointBase.Alignment Property

Definition

Gets a value that indicates where the snap point is located in relation to the viewport.

public:
 property ScrollSnapPointsAlignment Alignment { ScrollSnapPointsAlignment get(); };
ScrollSnapPointsAlignment Alignment();
public ScrollSnapPointsAlignment Alignment { get; }
var scrollSnapPointsAlignment = scrollSnapPointBase.alignment;
Public ReadOnly Property Alignment As ScrollSnapPointsAlignment

Property Value

A value of the enumeration that indicates where the snap point is located in relation to the viewport.

Remarks

The alignment enumeration values of Near, Center, or Far indicate where the snap point is located in relation to the viewport. For example, for a horizontal snap point, the Near alignment corresponds to the left edge of the viewport, Center corresponds to the middle of the viewport, and Far corresponds to the right edge.

Applies to