Class EllipseElement
Implements the "ellipse" element of SVG DOM.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart.SvgBase
Assembly: Syncfusion.Chart.Base.dll
Syntax
public sealed class EllipseElement : SuperElement, IElement, IStrokeAttributes, IFillAttributes, ITransformAttribute, IStyleAttribute, IFontAttributes, IViewBoxAttribute, IOpacityAttribute, IClipingAttribute
Constructors
EllipseElement()
Initializes a new instance of the EllipseElement class.
Declaration
public EllipseElement()
Properties
CX
Gets or sets the X coordinate of the element center.
Declaration
public Length CX { get; set; }
Property Value
Type | Description |
---|---|
Length | The X coordinate of the element center. |
CY
Gets or sets the Y coordinate of the element center.
Declaration
public Length CY { get; set; }
Property Value
Type | Description |
---|---|
Length | The Y coordinate of the element center. |
RX
Gets or sets the horizontal radius.
Declaration
public Length RX { get; set; }
Property Value
Type | Description |
---|---|
Length | The horizontal radius. |
RY
Gets or sets the vertical radius.
Declaration
public Length RY { get; set; }
Property Value
Type | Description |
---|---|
Length | The vertical radius. |
Methods
DrawSelf(Graphics)
Draws the element to specified System.Drawing.Graphics.
Declaration
protected override void DrawSelf(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics. |
Overrides
FromCoordinates(Single, Single, Single, Single)
Creates instance of the EllipseElement by its location and size.
Declaration
public static EllipseElement FromCoordinates(float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | The x-location of the element. |
System.Single | y | The y-location of the element. |
System.Single | width | The width of the element. |
System.Single | height | The height of the element. |
Returns
Type | Description |
---|---|
EllipseElement | Calculated EllipseElement. |
FromRectangleF(RectangleF)
Creates the new EllipseElement instance by the specified System.Drawing.RectangleF.
Declaration
public static EllipseElement FromRectangleF(RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rect | The rect. |
Returns
Type | Description |
---|---|
EllipseElement | Returns EllipseElement. |