Skip to content

PdfGraphics.DrawDonut Method

Overloads

Name Description
DrawDonut(PdfPen,Double,Double,Double,Double,Double,Double,Double) Draws a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.
DrawDonut(PdfPen,Double,Double,Double,Double,Double,Double,Double,Double) Draws a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.
DrawDonut(PdfBrush,Double,Double,Double,Double,Double,Double,Double) Fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.
DrawDonut(PdfBrush,Double,Double,Double,Double,Double,Double,Double,Double) Fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.
DrawDonut(PdfPen,PdfBrush,Double,Double,Double,Double,Double,Double,Double) Draws and fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.
DrawDonut(PdfPen,PdfBrush,Double,Double,Double,Double,Double,Double,Double,Double) Draws and fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

DrawDonut(PdfPen,Double,Double,Double,Double,Double,Double,Double)

Draws a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

C#
public void DrawDonut(PdfPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight)

Parameters

pen PdfPen

PdfPen that determines the color, width, and style of the donut shape.

x Double

The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double

The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double

Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double

Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double

Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double

Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double

The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.

DrawDonut(PdfPen,Double,Double,Double,Double,Double,Double,Double,Double)

Draws a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

C#
public void DrawDonut(PdfPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight, double rotation)

Parameters

pen PdfPen

PdfPen that determines the color, width, and style of the donut shape.

x Double

The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double

The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double

Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double

Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double

Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double

Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double

The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.

rotation Double

Rotation angle of the bounding rectangle that defines the donut.

DrawDonut(PdfBrush,Double,Double,Double,Double,Double,Double,Double)

Fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

C#
public void DrawDonut(PdfBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight)

Parameters

brush PdfBrush

PdfBrush that determines the characteristics of the fill.

x Double

The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double

The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double

Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double

Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double

Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double

Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double

The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.

DrawDonut(PdfBrush,Double,Double,Double,Double,Double,Double,Double,Double)

Fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

C#
public void DrawDonut(PdfBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight, double rotation)

Parameters

brush PdfBrush

PdfBrush that determines the characteristics of the fill.

x Double

The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double

The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double

Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double

Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double

Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double

Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double

The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.

rotation Double

Rotation angle of the bounding rectangle that defines the donut.

DrawDonut(PdfPen,PdfBrush,Double,Double,Double,Double,Double,Double,Double)

Draws and fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

C#
public void DrawDonut(PdfPen pen, PdfBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight)

Parameters

pen PdfPen

PdfPen that determines the color, width, and style of the donut shape.

brush PdfBrush

PdfBrush that determines the characteristics of the fill.

x Double

The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double

The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double

Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double

Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double

Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double

Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double

The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.

DrawDonut(PdfPen,PdfBrush,Double,Double,Double,Double,Double,Double,Double,Double)

Draws and fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

C#
public void DrawDonut(PdfPen pen, PdfBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight, double rotation)

Parameters

pen PdfPen

PdfPen that determines the color, width, and style of the donut shape.

brush PdfBrush

PdfBrush that determines the characteristics of the fill.

x Double

The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double

The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double

Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double

Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double

Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double

Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double

The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.

rotation Double

Rotation angle of the bounding rectangle that defines the donut.