Initializes a new instance of the CADEllipse class.

Namespace: CADImport
Assembly: CADImport (in CADImport.dll)

Public Sub New()
This language is not supported or no code example is available.
public CADEllipse()
This language is not supported or no code example is available.
<p>Creating a new CADEllipse object example:</p> <p>[C#]</p>
		
 	CreateNewImage();
 	CADEllipse ellipse = new CADEllipse();
 	ellipse.Color = CADConst.clNone;						
 	DPoint pt1 = GetRealPoint(100, 100);
 	DPoint pt2 = GetRealPoint(300, 300);
 	double dX = (pt2.X - pt1.X) / 2;
 	double dY = (pt2.Y - pt1.Y) / 4;
 	CADEllipse ell = new CADEllipse();
 	ellipse.Point = new DPoint(pt1.X + dX, pt1.Y + dY, 0);
 	ellipse.RadPt = new DPoint((pt2.X - pt1.X) / 2, (pt2.Y - pt2.Y) / 2, 0);
 	ellipse.Ratio = dY / dX;
 	ellipse.LineWeight = 0.1;
 	ellipse.StartParam = 360.0;
 	ellipse.EndParam = 0.0;
 	ellipse.LineWeight = 0.1;						
 	ellipse.Loaded(cadImage.Converter);			
 	ellipse.Handle = ellipse.GetHashCode();		
 	ellipse.KeyEnt = ellipse.Handle.ToString();			
 	cadImage.CurrentLayout.Entities.Add(ellipse);
 	cadImage.Converter.OnCreate(ellipse);		
 	EditorCADPictureBox.Invalidate();	
 						

Windows NT 4.0, Windows 98, Windows XP, Windows Server 2003, Windows Vista; Windows Server 2008 R2, Windows 7, WIndows10

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0 - 4, NET6

.NET Framework Client Profile

Supported in: 4, 3.5 SP1, NET6