Class Ellipse
Implements an ellipse shape.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class Ellipse : FilledPath, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable
Constructors
Ellipse(Ellipse)
Initializes a new instance of the Ellipse class.
Declaration
public Ellipse(Ellipse src)
Parameters
Type | Name | Description |
---|---|---|
Ellipse | src | Object to copy. |
Ellipse(PointF[])
Initializes a new instance of the Ellipse class.
Declaration
public Ellipse(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | Control points used to create the ellipse. |
Remarks
The array passed in must contain two points that specify a rectangle. The first point in the array is the upper-left corner of the rectangle and the second point is the lower-right corner of the rectangle.
Ellipse(PointF[], MeasureUnits)
Initializes a new instance of the Ellipse class.
Declaration
public Ellipse(PointF[] pts, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | Control points used to create the ellipse. |
MeasureUnits | measureUnits | Specifies points measure units. |
Remarks
The array passed in must contain two points that specify a rectangle. The first point in the array is the upper-left corner of the rectangle and the second point is the lower-right corner of the rectangle.
Ellipse(RectangleF)
Initializes a new instance of the Ellipse class.
Declaration
public Ellipse(RectangleF rcBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcBounds | Bounds of ellipse to create. |
Ellipse(RectangleF, MeasureUnits)
Initializes a new instance of the Ellipse class.
Declaration
public Ellipse(RectangleF rcBounds, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcBounds | Bounds of ellipse to create. |
MeasureUnits | measureUnits | Specifies rcBounds measure units. |
Ellipse(SerializationInfo, StreamingContext)
Initializes a new instance of the Ellipse class.
Declaration
protected Ellipse(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Deserialization state information. |
System.Runtime.Serialization.StreamingContext | context | Streaming context information. |
Ellipse(Single, Single, Single, Single)
Initializes a new instance of the Ellipse class.
Declaration
public Ellipse(float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | X-coordinate of bounding rectangle. |
System.Single | y | Y-coordinate of bounding rectangle. |
System.Single | width | Width of bounding rectangle. |
System.Single | height | Height of bounding rectangle. |
Ellipse(Single, Single, Single, Single, MeasureUnits)
Initializes a new instance of the Ellipse class.
Declaration
public Ellipse(float x, float y, float width, float height, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | X-coordinate of bounding rectangle. |
System.Single | y | Y-coordinate of bounding rectangle. |
System.Single | width | Width of bounding rectangle. |
System.Single | height | Height of bounding rectangle. |
MeasureUnits | measureUnits | Specifies points measure units. |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | Copy of the object this method is invoked against. |
Overrides
CreateLogicalGraphicsPath(PointF[])
Creates node's path with given array of points.
Declaration
protected override GraphicsPath CreateLogicalGraphicsPath(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | Points to create path from. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Created GraphicsPath, otherwise null. |
Overrides
DrawShading(Graphics)
Draw the shading over node.
Declaration
protected override void DrawShading(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The Graphics to draw on. |
Overrides
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
protected override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Overrides
Exceptions
Type | Condition |
---|---|
System.Security.SecurityException | The caller does not have the required permission. |