Table of Contents

Class PdfEllipsePart

Namespace
Syncfusion.Pdf.Graphics
Assembly
Syncfusion.Pdf.Portable.dll

Represents a base class of arc and pie shapes.

public abstract class PdfEllipsePart : PdfRectangleArea
Inheritance
PdfEllipsePart
Derived
Inherited Members

Examples

//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new PDF page.
PdfPage page = document.Pages.Add();
//Arc bounds.
RectangleF bounds = new RectangleF(0, 0, 200, 100);
//Create new instance of PdfArc.
PdfArc arc = new PdfArc(bounds, 0, 180);
//Draw the arc to PDF page.
arc.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()
'Arc bounds.
Dim bounds As New RectangleF(0, 0, 200, 100)
'Create new instance of PdfArc.
Dim arc As New PdfArc(bounds, 0, 180)
'Draw the arc to PDF page.
arc.Draw(page, PointF.Empty)
'Save the PDF docment.
document.Save("output.pdf")
'Close the PDF document.
document.Close(True)

Constructors

PdfEllipsePart()

Initializes a new instance of the EllipsePart class.

protected PdfEllipsePart()

PdfEllipsePart(RectangleF, float, float)

Initializes a new instance of the EllipsePart class with the specified Syncfusion.Drawing.RectangleF structure and sweep angle

protected PdfEllipsePart(RectangleF rectangle, float startAngle, float sweepAngle)

Parameters

rectangle RectangleF

RectangleF structure that defines the boundaries of the ellipse.

startAngle float

Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse.

sweepAngle float

Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse.

PdfEllipsePart(PdfPen, PdfBrush, RectangleF, float, float)

Initializes a new instance of the EllipsePart class.

protected PdfEllipsePart(PdfPen pen, PdfBrush brush, RectangleF rectangle, float startAngle, float sweepAngle)

Parameters

pen PdfPen

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

brush PdfBrush

Brush that determines the color and texture of the ellipse.

rectangle RectangleF

RectangleF structure that defines the boundaries of the ellipse.

startAngle float

Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse.

sweepAngle float

Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse.

PdfEllipsePart(PdfPen, PdfBrush, float, float, float, float, float, float)

Initializes a new instance of the EllipsePart class with the specified pen, brush, pair of coordinates, width and height and sweep angle.

protected PdfEllipsePart(PdfPen pen, PdfBrush brush, float x, float y, float width, float height, float startAngle, float sweepAngle)

Parameters

pen PdfPen

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

brush PdfBrush

Brush that determines the color and texture of the ellipse.

x float

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

y float

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

width float

Width of the bounding rectangle that defines the ellipse.

height float

Height of the bounding rectangle that defines the ellipse.

startAngle float

Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse.

sweepAngle float

Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse.

PdfEllipsePart(float, float, float, float, float, float)

Initializes a new instance of the EllipsePart class with the specified pair of coordinates, width, height and sweep angle

protected PdfEllipsePart(float x, float y, float width, float height, float startAngle, float sweepAngle)

Parameters

x float

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

y float

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

width float

Width of the bounding rectangle that defines the ellipse.

height float

Height of the bounding rectangle that defines the ellipse.

startAngle float

Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse.

sweepAngle float

Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse.

Properties

StartAngle

Gets or sets the start angle.

public float StartAngle { get; set; }

Property Value

float

Examples

//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new PDF page.
PdfPage page = document.Pages.Add();
//Arc bounds.
RectangleF bounds = new RectangleF(0, 0, 200, 100);
//Create new instance of PdfArc.
PdfArc arc = new PdfArc(bounds, 0, 180);
//Set start angle.
arc.StartAngle = 0;
//Draw the arc to PDF page.
arc.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()
'Arc bounds.
Dim bounds As New RectangleF(0, 0, 200, 100)
'Create new instance of PdfArc.
Dim arc As New PdfArc(bounds, 0, 180)
'Set start angle.
arc.StartAngle = 0
'Draw the arc to PDF page.
arc.Draw(page, PointF.Empty)
'Save the PDF docment.
document.Save("output.pdf")
'Close the PDF document.
document.Close(True)

SweepAngle

Gets or sets the sweep angle.

public float SweepAngle { get; set; }

Property Value

float

Examples

//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new PDF page.
PdfPage page = document.Pages.Add();
//Arc bounds.
RectangleF bounds = new RectangleF(0, 0, 200, 100);
//Create new instance of PdfArc.
PdfArc arc = new PdfArc(bounds, 0, 180);
//Set start angle.
arc.StartAngle = 0;
//Set sweep angle.
arc.SweepAngle = 90;
//Draw the arc to PDF page.
arc.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()
'Arc bounds.
Dim bounds As New RectangleF(0, 0, 200, 100)
'Create new instance of PdfArc.
Dim arc As New PdfArc(bounds, 0, 180)
'Set start angle.
arc.StartAngle = 0
'Set sweep angle.
arc.SweepAngle = 90
'Draw the arc to PDF page.
arc.Draw(page, PointF.Empty)
'Save the PDF docment.
document.Save("output.pdf")
'Close the PDF document.
document.Close(True)