RotateTransform3D.CenterY Właściwość

Definicja

Pobiera lub ustawia współrzędną Point3D Y, o której ma być obracana.

public:
 property double CenterY { double get(); void set(double value); };
public double CenterY { get; set; }
member this.CenterY : double with get, set
Public Property CenterY As Double

Wartość właściwości

Dwukrotnie reprezentuje współrzędną Point3D Y, o której ma być obracana.

Przykłady

Poniższy kod używa tej właściwości do zmiany punktu, wokół którego obróconyTransform3D przekształca model.

public void AddAnimation(object sender, EventArgs e)
{
    if ((bool)CenterAnimCheck.IsChecked == true)
    {
        //Shift point around which model rotates to (-0.5, -0.5, -0.5).
        myHorizontalRTransform.CenterX = -0.5;
        myHorizontalRTransform.CenterY = -0.5;
        myHorizontalRTransform.CenterZ = -0.5;
    }
    if ((bool)CenterAnimCheck.IsChecked != true)
    {
        //Set point around which model rotates back to (0, 0, 0).
        myHorizontalRTransform.CenterX = 0;
        myHorizontalRTransform.CenterY = 0;
        myHorizontalRTransform.CenterZ = 0;
    }
}
Public Sub AddAnimation(ByVal sender As Object, ByVal e As EventArgs)
    If CBool(CenterAnimCheck.IsChecked) = True Then
        'Shift point around which model rotates to (-0.5, -0.5, -0.5).
        myHorizontalRTransform.CenterX = -0.5
        myHorizontalRTransform.CenterY = -0.5
        myHorizontalRTransform.CenterZ = -0.5
    End If
    If CBool(CenterAnimCheck.IsChecked) <> True Then
        'Set point around which model rotates back to (0, 0, 0).
        myHorizontalRTransform.CenterX = 0
        myHorizontalRTransform.CenterY = 0
        myHorizontalRTransform.CenterZ = 0
    End If
End Sub

Uwagi

Informacje dotyczące właściwości zależności

Pole identyfikatora CenterYProperty
Właściwości metadanych ustawione na true Brak

Dotyczy