Ellipse Ellipse Ellipse Ellipse Class

Definition

Draws an ellipse with a given Height and Width specified in device-independent pixel (DIP).

public : sealed class Ellipse : Shape, IEllipsepublic sealed class Ellipse : Shape, IEllipsePublic NotInheritable Class Ellipse Inherits Shape Implements IEllipse// This API is not available in Javascript.
<Ellipse .../>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited events

Inherited methods

Examples

This example shows how to create an Ellipse in XAML and set some of its common properties as attribute values.

    <StackPanel>
        <Ellipse
         Fill="Yellow"
         Height="100"
         Width="200"
         StrokeThickness="2"
         Stroke="Black"/>
    </StackPanel>

Remarks

You can set the Fill property to give the shape a background fill, like a solid color, gradient, or image. You can set the Stroke and other related stroke properties to specify the look of the shape's outline.

Constructors

Ellipse() Ellipse() Ellipse() Ellipse()

Initializes a new instance of the Ellipse class.

public : Ellipse()public Ellipse()Public Sub New()// This API is not available in Javascript.

See Also