共用方式為


EllipseGeometry

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents the geometry of a circle or ellipse.

<EllipseGeometry   .../>

Managed Equivalent

EllipseGeometry

Remarks

You can use geometries individually or in combination to declare the data for a Path object.

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

For more information on basic concepts, see Geometries. Note that the Geometries topic is written primarily for users of the managed API, and may not have code examples or specific information that address the JavaScript API scenarios.

Example

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

<Canvas  
  xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  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

Reference