KeySpline Constructors

Definition

Initializes a new instance of the KeySpline class.

Overloads

KeySpline()

Initializes a new instance of the KeySpline class.

KeySpline(Point, Point)

Initializes a new instance of the KeySpline class with the specified control points.

KeySpline(Double, Double, Double, Double)

Initializes a new instance of the KeySpline class with the specified coordinates for the control points.

KeySpline()

Initializes a new instance of the KeySpline class.

C#
public KeySpline();

Remarks

The default values for ControlPoint1 and ControlPoint2 are (0,0) and (1,1) respectively, which has no effect on the progress of an animation or key frame.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

KeySpline(Point, Point)

Initializes a new instance of the KeySpline class with the specified control points.

C#
public KeySpline(System.Windows.Point controlPoint1, System.Windows.Point controlPoint2);

Parameters

controlPoint1
Point

The control point for the ControlPoint1 of the KeySpline.

controlPoint2
Point

The control point for the ControlPoint2 of the KeySpline.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

KeySpline(Double, Double, Double, Double)

Initializes a new instance of the KeySpline class with the specified coordinates for the control points.

C#
public KeySpline(double x1, double y1, double x2, double y2);

Parameters

x1
Double

The x-coordinate for the ControlPoint1 of the KeySpline.

y1
Double

The y-coordinate for the ControlPoint1 of the KeySpline.

x2
Double

The x-coordinate for the ControlPoint2 of the KeySpline.

y2
Double

The y-coordinate for the ControlPoint2 of the KeySpline.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10