Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfEllipse

    Show / Hide Table of Contents

    Class PdfEllipse

    Represents an ellipse shape.

    Inheritance
    System.Object
    PdfGraphicsElement
    PdfLayoutElement
    PdfShapeElement
    PdfDrawElement
    PdfFillElement
    PdfRectangleArea
    PdfEllipse
    Inherited Members
    PdfRectangleArea.X
    PdfRectangleArea.Y
    PdfRectangleArea.Width
    PdfRectangleArea.Height
    PdfRectangleArea.Size
    PdfRectangleArea.Bounds
    PdfFillElement.Brush
    PdfDrawElement.Pen
    PdfShapeElement.GetBounds()
    PdfShapeElement.Layout(PdfLayoutParams)
    PdfLayoutElement.add_EndPageLayout(EndPageLayoutEventHandler)
    PdfLayoutElement.remove_EndPageLayout(EndPageLayoutEventHandler)
    PdfLayoutElement.add_BeginPageLayout(BeginPageLayoutEventHandler)
    PdfLayoutElement.remove_BeginPageLayout(BeginPageLayoutEventHandler)
    PdfLayoutElement.Draw(PdfPage, PointF)
    PdfLayoutElement.Draw(PdfPage, Single, Single)
    PdfLayoutElement.Draw(PdfPage, RectangleF)
    PdfLayoutElement.Draw(PdfPage, PointF, PdfLayoutFormat)
    PdfLayoutElement.Draw(PdfPage, Single, Single, PdfLayoutFormat)
    PdfLayoutElement.Draw(PdfPage, RectangleF, PdfLayoutFormat)
    PdfLayoutElement.Layout(HtmlToPdfLayoutParams)
    PdfLayoutElement.PdfTag
    PdfLayoutElement.EndPageLayout
    PdfLayoutElement.BeginPageLayout
    PdfGraphicsElement.Draw(PdfGraphics)
    PdfGraphicsElement.Draw(PdfGraphics, PointF)
    PdfGraphicsElement.Draw(PdfGraphics, Single, Single)
    Namespace: Syncfusion.Pdf.Graphics
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public class PdfEllipse : PdfRectangleArea
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();   
    //Bounds
    RectangleF bounds = new RectangleF(0, 0, 200, 100);
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(bounds);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add()   
     'Bounds
     Dim bounds As New RectangleF(0, 0, 200, 100)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(bounds)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    Constructors

    PdfEllipse()

    Initializes a new instance of the PdfEllipse class.

    Declaration
    protected PdfEllipse()

    PdfEllipse(RectangleF)

    Initializes a new instance of the PdfEllipse class with the rectangle.

    Declaration
    public PdfEllipse(RectangleF rectangle)
    Parameters
    Type Name Description
    RectangleF rectangle

    RectangleF structure that defines the boundaries of the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();   
    //Bounds
    RectangleF bounds = new RectangleF(0, 0, 200, 100);
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(bounds);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add()   
     'Bounds
     Dim bounds As New RectangleF(0, 0, 200, 100)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(bounds)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(PdfBrush, RectangleF)

    Initializes a new instance of the PdfEllipse class with the specified brush and RectangleF structure

    Declaration
    public PdfEllipse(PdfBrush brush, RectangleF rectangle)
    Parameters
    Type Name Description
    PdfBrush brush

    Brush that determines the color and texture of the ellipse.

    RectangleF rectangle

    RectangleF structure that defines the boundaries of the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();   
    PdfBrush brush = new PdfSolidBrush(Color.Red);
    //Creat new PdfEllipse instance.
    //Bounds
    RectangleF bounds = new RectangleF(0, 0, 200, 100);
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(brush, bounds);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add()  
     'Create new PDF solid brush.
     Dim brush As PdfBrush = New PdfSolidBrush(Color.Red)
     'Bounds
     Dim bounds As New RectangleF(0, 0, 200, 100)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(brush, bounds)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(PdfBrush, Single, Single)

    Initializes a new instance of the PdfEllipse class with the specified brush, width and height.

    Declaration
    public PdfEllipse(PdfBrush brush, float width, float height)
    Parameters
    Type Name Description
    PdfBrush brush

    Brush that determines the color and texture of the ellipse.

    System.Single width

    Width of the bounding rectangle that defines the ellipse.

    System.Single height

    Height of the bounding rectangle that defines the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    //Create new PDF solid brush.
    PdfBrush brush = new PdfSolidBrush(Color.Red);
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(brush, 200, 100);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add()
     'Create new PDF solid brush.
     Dim brush As PdfBrush = New PdfSolidBrush(Color.Red)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(brush, 200, 100)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(PdfBrush, Single, Single, Single, Single)

    Initializes a new instance of the PdfEllipse class with the specified brush, pair of coordinates, width and height

    Declaration
    public PdfEllipse(PdfBrush brush, float x, float y, float width, float height)
    Parameters
    Type Name Description
    PdfBrush brush

    Brush that determines the color and texture of the ellipse.

    System.Single x

    The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

    System.Single y

    The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

    System.Single width

    Width of the bounding rectangle that defines the ellipse.

    System.Single height

    Height of the bounding rectangle that defines the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    PdfBrush brush = new PdfSolidBrush(Color.Red);
    //Creat new PdfEllipse instance.
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(brush, 0, 0, 200, 100);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add() 
     'Create new PDF solid brush.
     Dim brush As PdfBrush = New PdfSolidBrush(Color.Red)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(brush, 0, 0, 200, 100)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(PdfPen, RectangleF)

    Initializes a new instance of the PdfEllipse class with the specified pen and RectangleF structure

    Declaration
    public PdfEllipse(PdfPen pen, RectangleF rectangle)
    Parameters
    Type Name Description
    PdfPen pen

    Pen that determines the color, width, and style of the ellipse.

    RectangleF rectangle

    RectangleF structure that defines the boundaries of the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();   
    //Create new PDF Pen.
    PdfPen pen = new PdfPen(Color.Red);
    //Bounds
    RectangleF bounds = new RectangleF(0, 0, 200, 100);
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(pen, bounds);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add()  
     'Create new PDF Pen.
     Dim pen As New PdfPen(Color.Red)
     'Bounds
     Dim bounds As New RectangleF(0, 0, 200, 100)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(pen, bounds)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(PdfPen, PdfBrush, RectangleF)

    Initializes a new instance of the PdfEllipse class with the specified pen, brush and RectangleF structure

    Declaration
    public PdfEllipse(PdfPen pen, PdfBrush brush, RectangleF rectangle)
    Parameters
    Type Name Description
    PdfPen pen

    Pen that determines the color, width, and style of the ellipse.

    PdfBrush brush

    Brush that determines the color and texture of the ellipse.

    RectangleF rectangle

    RectangleF structure that defines the boundaries of the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();   
    //Create new PDF Pen.
    PdfPen pen = new PdfPen(Color.Red);
    //Create new PDF solid brush.
    PdfBrush brush = new PdfSolidBrush(Color.Red);
    //Bounds
    RectangleF bounds = new RectangleF(0, 0, 200, 100);
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(pen, brush, bounds);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add()  
     'Create new PDF Pen.
     Dim pen As New PdfPen(Color.Red)
     'Create new PDF solid brush.
     Dim brush As PdfBrush = New PdfSolidBrush(Color.Red)
     'Bounds
     Dim bounds As New RectangleF(0, 0, 200, 100)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(pen, brush, bounds)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True) 

    PdfEllipse(PdfPen, PdfBrush, Single, Single)

    Initializes a new instance of the PdfEllipse class with the specified pen, brush, width and height

    Declaration
    public PdfEllipse(PdfPen pen, PdfBrush brush, float width, float height)
    Parameters
    Type Name Description
    PdfPen pen

    Pen that determines the color, width, and style of the ellipse.

    PdfBrush brush

    Brush that determines the color and texture of the ellipse.

    System.Single width

    Width of the bounding rectangle that defines the ellipse.

    System.Single height

    Height of the bounding rectangle that defines the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    //Create new PDF Pen.
    PdfPen pen = new PdfPen(Color.Red);
    //Create new PDF solid brush.
    PdfBrush brush = new PdfSolidBrush(Color.Red);
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(pen, brush, 200, 100);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add()
     'Create new PDF Pen.
     Dim pen As New PdfPen(Color.Red)
     'Create new PDF solid brush.
     Dim brush As PdfBrush = New PdfSolidBrush(Color.Red)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(pen, brush, 200, 100)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(PdfPen, PdfBrush, Single, Single, Single, Single)

    Initializes a new instance of the PdfEllipse class with the specified pen, brush, pair of coordinates, width and height

    Declaration
    public PdfEllipse(PdfPen pen, PdfBrush brush, float x, float y, float width, float height)
    Parameters
    Type Name Description
    PdfPen pen

    Pen that determines the color, width, and style of the ellipse.

    PdfBrush brush

    Brush that determines the color and texture of the ellipse.

    System.Single x

    The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

    System.Single y

    The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

    System.Single width

    Width of the bounding rectangle that defines the ellipse.

    System.Single height

    Height of the bounding rectangle that defines the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    //Create new PDF Pen.
    PdfPen pen = new PdfPen(Color.Red);
    PdfBrush brush = new PdfSolidBrush(Color.Red);
    //Creat new PdfEllipse instance.
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(pen, brush, 0, 0, 200, 100);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add() 
     'Create new PDF Pen.
     Dim pen As New PdfPen(Color.Red)
     'Create new PDF solid brush.
     Dim brush As PdfBrush = New PdfSolidBrush(Color.Red)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(pen, brush, 0, 0, 200, 100)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(PdfPen, Single, Single)

    Initializes a new instance of the PdfEllipse class with the specified pen, width and height.

    Declaration
    public PdfEllipse(PdfPen pen, float width, float height)
    Parameters
    Type Name Description
    PdfPen pen

    Pen that determines the color, width, and style of the ellipse.

    System.Single width

    Width of the bounding rectangle that defines the ellipse.

    System.Single height

    Height of the bounding rectangle that defines the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
     //Create new PDF Pen.
     PdfPen pen = new PdfPen(Color.Red);
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(pen, 200, 100);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add()
     'Create new PDF Pen.
     Dim pen As New PdfPen(Color.Red)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(pen, 200, 100)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(PdfPen, Single, Single, Single, Single)

    Initializes a new instance of the PdfEllipse class with the specified pen, pair of coordinates, width and height

    Declaration
    public PdfEllipse(PdfPen pen, float x, float y, float width, float height)
    Parameters
    Type Name Description
    PdfPen pen

    Pen that determines the color, width, and style of the ellipse.

    System.Single x

    The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

    System.Single y

    The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

    System.Single width

    Width of the bounding rectangle that defines the ellipse.

    System.Single height

    Height of the bounding rectangle that defines the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    //Create new PDF Pen.
    PdfPen pen = new PdfPen(Color.Red);
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(pen, 0, 0, 200, 100);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add() 
     'Create new PDF Pen.
     Dim pen As New PdfPen(Color.Red)
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(pen, 0, 0, 200, 100)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(Single, Single)

    Initializes a new instance of the PdfEllipse class with the specified width and height

    Declaration
    public PdfEllipse(float width, float height)
    Parameters
    Type Name Description
    System.Single width

    Width of the bounding rectangle that defines the ellipse.

    System.Single height

    Height of the bounding rectangle that defines the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(200, 100);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add()
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(200, 100)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    PdfEllipse(Single, Single, Single, Single)

    Initializes a new instance of the PdfEllipse class with the specified pair of coordinates, width and height

    Declaration
    public PdfEllipse(float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Single x

    The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

    System.Single y

    The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

    System.Single width

    Width of the bounding rectangle that defines the ellipse.

    System.Single height

    Height of the bounding rectangle that defines the ellipse.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(0, 0, 200, 100);
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
     'Create a new PDF document.
     Dim document As New PdfDocument()
     'Add a new PDF page.
     Dim page As PdfPage = document.Pages.Add() 
     'Creat new PdfEllipse instance.
     Dim ellipse As New PdfEllipse(0, 0, 200, 100)
     'Draw the ellipse to PDF page.
     ellipse.Draw(page, PointF.Empty)
     'Save the PDF docment.
     document.Save("output.pdf")
     'Close the PDF document.
     document.Close(True)

    Properties

    Center

    Gets the center point.

    Declaration
    public PointF Center { get; }
    Property Value
    Type Description
    PointF
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(200, 100);
    //Get the radius X.
    float radiusX = ellipse.RadiusX;
    //Get the radius Y.
    float radiusY = ellipse.RadiusY;
    //Get the center radius.
    PointF center = ellipse.Center;
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
    'Create a new PDF document.
    Dim document As New PdfDocument()
    'Add a new PDF page.
    Dim page As PdfPage = document.Pages.Add()
    'Creat new PdfEllipse instance.
    Dim ellipse As New PdfEllipse(200, 100)
    'Get the radius X.
    Dim radiusX As Single = ellipse.RadiusX
    'Get the radius Y.
    Dim radiusY As Single = ellipse.RadiusY
    'Get the center radius.
    Dim center As PointF = ellipse.Center
    'Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty)
    'Save the PDF docment.
    document.Save("output.pdf")
    'Close the PDF document.
    document.Close(True)

    RadiusX

    Gets the radius X.

    Declaration
    public float RadiusX { get; }
    Property Value
    Type Description
    System.Single
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(200, 100);
    //Get the radius X.
    float radiusX = ellipse.RadiusX;
    //Get the radius Y.
    float radiusY = ellipse.RadiusY;
    //Get the center radius.
    PointF center = ellipse.Center;
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
    'Create a new PDF document.
    Dim document As New PdfDocument()
    'Add a new PDF page.
    Dim page As PdfPage = document.Pages.Add()
    'Creat new PdfEllipse instance.
    Dim ellipse As New PdfEllipse(200, 100)
    'Get the radius X.
    Dim radiusX As Single = ellipse.RadiusX
    'Get the radius Y.
    Dim radiusY As Single = ellipse.RadiusY
    'Get the center radius.
    Dim center As PointF = ellipse.Center
    'Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty)
    'Save the PDF docment.
    document.Save("output.pdf")
    'Close the PDF document.
    document.Close(True)

    RadiusY

    Gets the radius Y.

    Declaration
    public float RadiusY { get; }
    Property Value
    Type Description
    System.Single
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Add a new PDF page.
    PdfPage page = document.Pages.Add();
    //Creat new PdfEllipse instance.
    PdfEllipse ellipse = new PdfEllipse(200, 100);
    //Get the radius X.
    float radiusX = ellipse.RadiusX;
    //Get the radius Y.
    float radiusY = ellipse.RadiusY;
    //Get the center radius.
    PointF center = ellipse.Center;
    //Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty);
    //Save the PDF docment.
    document.Save("output.pdf");
    //Close the PDF document.
    document.Close(true);
    'Create a new PDF document.
    Dim document As New PdfDocument()
    'Add a new PDF page.
    Dim page As PdfPage = document.Pages.Add()
    'Creat new PdfEllipse instance.
    Dim ellipse As New PdfEllipse(200, 100)
    'Get the radius X.
    Dim radiusX As Single = ellipse.RadiusX
    'Get the radius Y.
    Dim radiusY As Single = ellipse.RadiusY
    'Get the center radius.
    Dim center As PointF = ellipse.Center
    'Draw the ellipse to PDF page.
    ellipse.Draw(page, PointF.Empty)
    'Save the PDF docment.
    document.Save("output.pdf")
    'Close the PDF document.
    document.Close(True)
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved