EllipseGeometry

The EllipseGeometry class represents an ellipse defined by a center point and two radii, one for the top and bottom of the ellipse and the other for the sides. Its properties are shown in Table 7-3.

Table 7-3. Properties of the System.Windows.Media.EllipseGeometry Class Property Type Description

RadiusX double Gets or sets the x radius of the ellipse used for defining the ellipse's sides

RadiusY double Gets or sets the y radius of the ellipse used for defining the ellipse's top and bottom

Center Point Gets or sets the center point of the ellipse

Yet again, we use the Path class to display EllipseGeometry on the screen:

<Path Stroke="Red" StrokeThickness="5"> <Path.Data>

<EllipseGeometry Center="50,50" RadiusX="50" RadiusY="20"/> </Path.Data> </Path>

0 0

Post a comment

  • Receive news updates via email from this site