Export (0) Print
Expand All

EllipseGeometry Object

Represents the geometry of a circle or ellipse.

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

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="http://schemas.microsoft.com/client/2007" 
  xmlns:x="http://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

Community Additions

Show:
© 2014 Microsoft