See Also

Circle Members  | ceTe.DynamicPDF.PageElements Namespace

Requirements

Namespace: ceTe.DynamicPDF.PageElements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

Language

Visual Basic

C#

Show All

Represents a circle.

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

Object Model




Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.PageElement
      ceTe.DynamicPDF.PageElements.Circle

Syntax

[Visual Basic]
Public Class Circle    Inherits PageElement
[C#]
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, Grayscale.Black, _
            RgbColor.OrangeRed, 2, LineStyle.Solid)
        Dim circle2 As Circle = New Circle(150, 75, 50, 50, Grayscale.Black, _
            RgbColor.Lime, 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, Grayscale.Black, RgbColor.OrangeRed,  
            2, LineStyle.Solid); 
        Circle circle2 = new Circle(150, 75, 50, 50, Grayscale.Black, RgbColor.Lime,  
            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" ); 
    } 
}

Licensing

This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

Requirements

Namespace: ceTe.DynamicPDF.PageElements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

See Also

Circle Members  | ceTe.DynamicPDF.PageElements Namespace

 

 


© Copyright 2007, ceTe Software