PdfGraphics.DrawRectangle Method
Overloads
| Name | Description |
|---|---|
| DrawRectangle(PdfPen,Double,Double,Double,Double) | Draws a rectangle specified by a coordinate pair, a width, and a height. |
| DrawRectangle(PdfPen,Double,Double,Double,Double,Double) | Draws a rectangle specified by a coordinate pair, a width, and a height. |
| DrawRectangle(PdfBrush,Double,Double,Double,Double) | Fills the interior of a rectangle specified by a coordinate pair, a width, and a height. |
| DrawRectangle(PdfBrush,Double,Double,Double,Double,Double) | Fills the interior of a rectangle specified by a coordinate pair, a width, and a height. |
| DrawRectangle(PdfPen,PdfBrush,Double,Double,Double,Double) | Draws and fills the interior of a rectangle specified by a coordinate pair, a width, and a height. |
| DrawRectangle(PdfPen,PdfBrush,Double,Double,Double,Double,Double) | Draws and fills the interior of a rectangle specified by a coordinate pair, a width, and a height. |
DrawRectangle(PdfPen,Double,Double,Double,Double)
Draws a rectangle specified by a coordinate pair, a width, and a height.
Parameters
pen PdfPen
PdfPen that determines the color, width, and style of the rectangle.
x Double
The x-coordinate of the upper-left corner of the rectangle to draw.
y Double
The y-coordinate of the upper-left corner of the rectangle to draw.
width Double
Width of the rectangle to draw.
height Double
Height of the rectangle to draw.
DrawRectangle(PdfPen,Double,Double,Double,Double,Double)
Draws a rectangle specified by a coordinate pair, a width, and a height.
public void DrawRectangle(PdfPen pen, double x, double y, double width, double height, double rotation)
Parameters
pen PdfPen
PdfPen that determines the color, width, and style of the rectangle.
x Double
The x-coordinate of the upper-left corner of the rectangle to draw.
y Double
The y-coordinate of the upper-left corner of the rectangle to draw.
width Double
Width of the rectangle to draw.
height Double
Height of the rectangle to draw.
rotation Double
Rotation of the rectangle around the upper-left corner.
DrawRectangle(PdfBrush,Double,Double,Double,Double)
Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
Parameters
brush PdfBrush
PdfBrush that determines the characteristics of the fill.
x Double
The x-coordinate of the upper-left corner of the rectangle to draw.
y Double
The y-coordinate of the upper-left corner of the rectangle to draw.
width Double
Width of the rectangle to draw.
height Double
Height of the rectangle to draw.
DrawRectangle(PdfBrush,Double,Double,Double,Double,Double)
Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
public void DrawRectangle(PdfBrush brush, double x, double y, double width, double height, 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 rectangle to draw.
y Double
The y-coordinate of the upper-left corner of the rectangle to draw.
width Double
Width of the rectangle to draw.
height Double
Height of the rectangle to draw.
rotation Double
Rotation of the rectangle around the upper-left corner.
DrawRectangle(PdfPen,PdfBrush,Double,Double,Double,Double)
Draws and fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
public void DrawRectangle(PdfPen pen, PdfBrush brush, double x, double y, double width, double height)
Parameters
pen PdfPen
PdfPen that determines the color, width, and style of the rectangle.
brush PdfBrush
PdfBrush that determines the characteristics of the fill.
x Double
The x-coordinate of the upper-left corner of the rectangle to draw.
y Double
The y-coordinate of the upper-left corner of the rectangle to draw.
width Double
Width of the rectangle to draw.
height Double
Height of the rectangle to draw.
DrawRectangle(PdfPen,PdfBrush,Double,Double,Double,Double,Double)
Draws and fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
public void DrawRectangle(PdfPen pen, PdfBrush brush, double x, double y, double width, double height, double rotation)
Parameters
pen PdfPen
PdfPen that determines the color, width, and style of the rectangle.
brush PdfBrush
PdfBrush that determines the characteristics of the fill.
x Double
The x-coordinate of the upper-left corner of the rectangle to draw.
y Double
The y-coordinate of the upper-left corner of the rectangle to draw.
width Double
Width of the rectangle to draw.
height Double
Height of the rectangle to draw.
rotation Double
Rotation of the rectangle around the upper-left corner.