OrientedVirtualizingPanel.GetRegularSnapPoints Méthode

Définition

Obtient la distance entre les points d’ancrage réguliers pour une orientation et un alignement spécifiés.

public:
 virtual float GetRegularSnapPoints(Orientation orientation, SnapPointsAlignment alignment, [Out] float & offset) = GetRegularSnapPoints;
float GetRegularSnapPoints(Orientation const& orientation, SnapPointsAlignment const& alignment, [Out] float & offset);
public float GetRegularSnapPoints(Orientation orientation, SnapPointsAlignment alignment, out float offset);
Public Function GetRegularSnapPoints (orientation As Orientation, alignment As SnapPointsAlignment, ByRef offset As Single) As Single

Paramètres

orientation
Orientation

Orientation du jeu de points d’ancrage souhaité.

alignment
SnapPointsAlignment

Alignement à utiliser lors de l’application des points d’ancrage.

offset
Single

float

Paramètre de sortie. Décalage du premier point d’ancrage.

Retours

Single

float

Distance entre les points d’ancrage équidistants. Retourne 0 lorsqu’aucun point d’ancrage n’est présent.

Implémente

M:Windows.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo.GetRegularSnapPoints(Windows.UI.Xaml.Controls.Orientation,Windows.UI.Xaml.Controls.Primitives.SnapPointsAlignment,System.Single@) M:Windows.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo.GetRegularSnapPoints(Windows.UI.Xaml.Controls.Orientation,Windows.UI.Xaml.Controls.Primitives.SnapPointsAlignment,float@)

S’applique à