Adds an oval to the current page.

 

   

Syntax
 

[C#]
int AddOval(bool filled)

[Visual Basic]
Function AddOval(filled As Boolean) As Integer

 

   

Params
 
Name Description
filled Whether to fill the oval rather than simply outline it.
return The Object ID of the newly added Graphic Object.

 

   

Notes
 

Adds an oval to the current page. The oval is drawn in the current color at the current width and with the current options. It is scaled to fill the current rectangle. The oval may be outlined or filled.

The AddOval function returns the Object ID of the newly added Graphic Object.

 

   

Example
 

The following code adds two ovals to a document. The outline oval is semi-transparent.

[C#]
Doc theDoc = new Doc();
theDoc.Width = 80;
theDoc.Rect.Inset(50, 50);
theDoc.Color.String = "255 0 0";
theDoc.AddOval(true);
theDoc.Color.String = "0 255 0 a128";
theDoc.AddOval(false);
theDoc.Save(Server.MapPath("docaddoval.pdf"));
theDoc.Clear();

[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.Width = 80
theDoc.Rect.Inset(50, 50)
theDoc.Color.String = "255 0 0"
theDoc.AddOval(True)
theDoc.Color.String = "0 255 0 a128"
theDoc.AddOval(False)
theDoc.Save(Server.MapPath("docaddoval.pdf"))
theDoc.Clear()


docaddoval.pdf