EllipseGeometry class

Applies to Windows and Windows Phone

Represents the geometry of a circle or ellipse.

Inheritance

Object
  DependencyObject
    Geometry
      EllipseGeometry

Syntax


public sealed class EllipseGeometry : Geometry


<EllipseGeometry .../>

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The EllipseGeometry class has these types of members:

Constructors

The EllipseGeometry class has these constructors.

ConstructorDescription
EllipseGeometry Initializes a new instance of the EllipseGeometry class.

 

Methods

The EllipseGeometry class has these methods. It also inherits methods from the Object class.

MethodDescription
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject)

 

Properties

The EllipseGeometry class has these properties.

PropertyAccess typeDescription

Bounds

Read-onlyGets a Rect that specifies the axis-aligned bounding box of the Geometry. (Inherited from Geometry)

Center

Read/writeGets or sets the center point of the EllipseGeometry.

CenterProperty

Read-onlyIdentifies the Center dependency property.

Dispatcher

Read-onlyGets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject)

RadiusX

Read/writeGets or sets the x-radius value of the EllipseGeometry.

RadiusXProperty

Read-onlyIdentifies the RadiusX dependency property.

RadiusY

Read/writeGets or sets the y-radius value of the EllipseGeometry.

RadiusYProperty

Read-onlyIdentifies the RadiusY dependency property.

Transform

Read/writeGets or sets the Transform object applied to a Geometry. (Inherited from Geometry)

 

Examples

This example shows how to create an ellipse using EllipseGeometry.


<Canvas>
    <Path Fill="Gold" Stroke="Red" StrokeThickness="1">
        <Path.Data>
            <EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50" />
        </Path.Data>
    </Path>
</Canvas>


Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

Geometry

 

 

Show:
© 2014 Microsoft. All rights reserved.