Circle

Represents a circle.

public class Circle : TaggablePageElement, ISerializable
Public Class Circle
    Inherits TaggablePageElement
    Implements ISerializable

Inheritance: ObjectPageElementTaggablePageElementCircle

Implements: ISerializable

Licensing Info

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

The following example will place two circles on the page with different size, shape and colors.
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
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;

public class Example
{
    public static void CreatePDF(string outputPath)
    {
        // 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( outputPath );
    }
}

Remarks

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

Constructors

Circle(Single, Single, Single)Initializes a new instance of the Circle class.
Circle(Single, Single, Single, Color)Initializes a new instance of the Circle class.
Circle(Single, Single, Single, Color, Color)Initializes a new instance of the Circle class.
Circle(Single, Single, Single, Color, Color, Single)Initializes a new instance of the Circle class.
Circle(Single, Single, Single, Color, Color, Single, LineStyle)Initializes a new instance of the Circle class.
Circle(Single, Single, Single, Color, Single, LineStyle)Initializes a new instance of the Circle class.
Circle(Single, Single, Single, Single)Initializes a new instance of the Circle class.
Circle(Single, Single, Single, Single, Color, Color, Single, LineStyle)Initializes a new instance of the Circle class.
Circle(Single, Single, Single, Single, LineStyle)Initializes a new instance of the Circle class.

Properties

BorderColorGets or sets the Color object to use for the border of the circle.
BorderStyleGets or sets the LineStyle object that represents the border style of the circle.
BorderWidthGets or sets the border width of the circle.
FillColorGets or sets the Color object to use for the fill of the circle.
IDGets or sets the ID of the page element.
(Inherited from PageElement)
IgnoreMarginsGets or sets ignore margin property. Setting false will consider the margin while placing the page element based on the RelativeTo property.
(Inherited from PageElement)
RadiusXGets or sets the horizontal radius of the circle.
RadiusYGets or sets the vertical radius of the circle.
RelativeToGets and sets placement of the page element on the page.
(Inherited from PageElement)
TagGets or sets the tag of the taggable element.
(Inherited from TaggablePageElement)
TagOrderGets or sets the tag order of the taggable element.
(Inherited from TaggablePageElement)
XGets or sets the X coordinate of the circle.
YGets or sets the Y coordinate of the circle.

Methods

Draw(PageWriter)Draws the circle to the given PageWriter object.
Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also

ceTe.DynamicPDF.PageElements

In this topic