Represents a circle.

For a list of all members of this type, see Circle Members


System.Object
   ceTe.DynamicPDF.PageElement
public class Circle : PageElement 

Remarks

This class can be used to place circles on a page.

Example

The following example will place two circles on the page with different size, shape and colors.

[Visual Basic]
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements

Module MyModule
        
    Sub Main()
        
        ' Create a PDF Document
        Dim MyDocument As Document = New Document 
        
        ' Create a Page and add it to the document
        Dim MyPage As Page = New Page
        MyDocument.Pages.Add(MyPage)

        ' Create two circles
        Dim circle1 As Circle = New Circle(100, 100, 50, 100, Color.Black, _
            Color.OrangeRed, Apply.Both, 2, LineStyle.Solid)
        Dim circle2 As Circle = New Circle(150, 75, 50, 50, Color.Black, _
            Color.Lime, Apply.Both, 2, LineStyle.Solid)

        ' Add the circles to the page
        MyPage.Elements.Add(circle1)
        MyPage.Elements.Add(circle2)

        ' Save the PDF
        MyDocument.Draw("C:\MyDocument.pdf")
        
    End Sub
End Module
[C#]
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;

class MyClass
{
    static void Main()
    {
        // Create a PDF Document
        Document document = new Document();

        // Create a Page and add it to the document
        Page page = new Page();
        document.Pages.Add( page );

        // Create two circles
        Circle circle1 = new Circle(100, 100, 50, 100, Color.Black, Color.OrangeRed, 
            Apply.Both, 2, LineStyle.Solid);
        Circle circle2 = new Circle(150, 75, 50, 50, Color.Black, Color.Lime, 
            Apply.Both, 2, LineStyle.Solid);

        // Add the circles to the page
        page.Elements.Add( circle1 );    
        page.Elements.Add( circle2 );    

        // Save the PDF
        document.Draw( @"C:\MyDocument.pdf" );
    }
}

Requirements

Namespace: ceTe.DynamicPDF.PageElements Namespace

Assembly: DynamicPDF.Generator.[Edition].dll

See Also

Circle members | ceTe.DynamicPDF.PageElements Namespace