EllipseGeometry Constructors

Definition

Initializes a new instance of the EllipseGeometry class.

Overloads

EllipseGeometry()

Initializes a new instance of the EllipseGeometry class.

EllipseGeometry(Rect)

Initializes a new instance of the EllipseGeometry class that has a horizontal diameter equal to the width of the passed Rect, a vertical diameter equal to the length of the passed Rect, and a center point location equal to the center of the passed Rect.

EllipseGeometry(Point, Double, Double)

Initializes a new instance of the EllipseGeometry class as an ellipse that has a specified center location, x radius, and y radius.

EllipseGeometry(Point, Double, Double, Transform)

Initializes a new instance of the EllipseGeometry class that has the specified position, size, and transformation.

EllipseGeometry()

Initializes a new instance of the EllipseGeometry class.

C#
public EllipseGeometry();

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

EllipseGeometry(Rect)

Initializes a new instance of the EllipseGeometry class that has a horizontal diameter equal to the width of the passed Rect, a vertical diameter equal to the length of the passed Rect, and a center point location equal to the center of the passed Rect.

C#
public EllipseGeometry(System.Windows.Rect rect);

Parameters

rect
Rect

The rectangle that describes the ellipse dimensions.

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

EllipseGeometry(Point, Double, Double)

Initializes a new instance of the EllipseGeometry class as an ellipse that has a specified center location, x radius, and y radius.

C#
public EllipseGeometry(System.Windows.Point center, double radiusX, double radiusY);

Parameters

center
Point

The location of the center of the ellipse.

radiusX
Double

The horizontal radius of the ellipse.

radiusY
Double

The vertical radius of the ellipse.

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

EllipseGeometry(Point, Double, Double, Transform)

Initializes a new instance of the EllipseGeometry class that has the specified position, size, and transformation.

C#
public EllipseGeometry(System.Windows.Point center, double radiusX, double radiusY, System.Windows.Media.Transform transform);

Parameters

center
Point

The location of the center of the ellipse.

radiusX
Double

The horizontal radius of the ellipse.

radiusY
Double

The vertical radius of the ellipse.

transform
Transform

The transformation to apply to the ellipse.

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