Table of Contents

Class RotateTransform

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Rotates an Visual.

public sealed class RotateTransform : Transform, INotifyPropertyChanged, IMutableTransform, ITransform
Inheritance
RotateTransform
Implements
Inherited Members
Extension Methods

Constructors

RotateTransform()

Initializes a new instance of the RotateTransform class.

public RotateTransform()

RotateTransform(double)

Initializes a new instance of the RotateTransform class.

public RotateTransform(double angle)

Parameters

angle double

The angle, in degrees.

RotateTransform(double, double, double)

Initializes a new instance of the RotateTransform class.

public RotateTransform(double angle, double centerX, double centerY)

Parameters

angle double

The angle, in degrees.

centerX double

The x-coordinate of the center point for the rotation.

centerY double

The y-coordinate of the center point for the rotation.

Fields

AngleProperty

Defines the Angle property.

public static readonly StyledProperty<double> AngleProperty

Field Value

StyledProperty<double>

CenterXProperty

Defines the CenterX property.

public static readonly StyledProperty<double> CenterXProperty

Field Value

StyledProperty<double>

CenterYProperty

Defines the CenterY property.

public static readonly StyledProperty<double> CenterYProperty

Field Value

StyledProperty<double>

Properties

Angle

Gets or sets the angle of rotation, in degrees.

public double Angle { get; set; }

Property Value

double

CenterX

Gets or sets the x-coordinate of the rotation center point. The default is 0.

public double CenterX { get; set; }

Property Value

double

CenterY

Gets or sets the y-coordinate of the rotation center point. The default is 0.

public double CenterY { get; set; }

Property Value

double

Value

Gets the transform's Matrix.

public override Matrix Value { get; }

Property Value

Matrix