.NET Framework Class Library for Silverlight
Ellipse Class

Draws an ellipse.

Namespace:  System.Windows.Shapes
Assembly:  System.Windows (in System.Windows.dll)
Syntax

Visual Basic (Declaration)
Public NotInheritable Class Ellipse _
    Inherits Shape
Visual Basic (Usage)
Dim instance As Ellipse
C#
public sealed class Ellipse : Shape
XAML Object Element Usage
<Ellipse .../>
Remarks

A shape cannot support child objects.

Examples

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

Run this sample

XAML
    <StackPanel>

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

System..::.Object
  System.Windows..::.DependencyObject
    System.Windows..::.UIElement
      System.Windows..::.FrameworkElement
        System.Windows.Shapes..::.Shape
          System.Windows.Shapes..::.Ellipse
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Other Resources

Tags :


Page view tracker