EllipseGeometry Object

Represents the geometry of a circle or ellipse.

XAML
<EllipseGeometry .../>
Scripting
To create an object using scripting, see CreateFromXAML.

Properties

Center, FillRuleName, RadiusX, RadiusY, Transform

Methods

Equals, FindName, GetHost, GetValue, SetValue

Remarks

Geometries can be used individually or in combination to declare the data for a Path. For details on the relationship between Path and geometries, see Geometry Overview.

FillRule is technically a property inherited from the base Geometry class, but setting it has no effect on an EllipseGeometry.

Examples

The following example shows how to create an ellipse using EllipseGeometry.

XAML
<Canvas  
  xmlns="https://schemas.microsoft.com/client/2007" 
  xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml"> 
  
  <Path Fill="Gold" Stroke="Black" StrokeThickness="1">
    <Path.Data>
      <EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50" />
    </Path.Data>
  </Path> 
</Canvas>

See Also

Geometry Overview
Geometry
GeometryGroup
Ellipse