Bagikan melalui


StackPanel.GetRegularSnapPoints Metode

Definisi

Mendapatkan jarak antara titik reguler untuk orientasi dan perataan tertentu.

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

Parameter

orientation
Orientation

Orientasi/dimensi untuk set titik jepret yang diinginkan.

alignment
SnapPointsAlignment

Perataan yang digunakan saat menerapkan titik snap.

offset
Single

float

Parameter keluar. Offset titik snap pertama.

Mengembalikan

Single

float

Jarak antara titik snap equidistant. Mengembalikan 0 jika tidak ada titik rekam jepret.

Penerapan

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@)

Berlaku untuk