VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / DrawRectangle Methods / DrawRectangle(PdfPen,Single,Single,Single,Single) Method
Syntax Requirements SeeAlso
In This Topic
DrawRectangle(PdfPen,Single,Single,Single,Single) Method (PdfGraphics)
In This Topic
Draws a rectangle specified by a coordinate pair, a width, and a height.
Syntax
'Declaration

Public Overloads Sub DrawRectangle( _
ByVal pen
PdfPen that determines the color, width, and style of the rectangle.
As PdfPen, _
ByVal x
The x-coordinate of the upper-left corner of the rectangle to draw.
As Single, _
ByVal y
The y-coordinate of the upper-left corner of the rectangle to draw.
As Single, _
ByVal width
The width of the rectangle to draw.
As Single, _
ByVal height
The height of the rectangle to draw.
As Single _
)
public void DrawRectangle(
PdfPen pen,
float x,
float y,
float width,
float height
)

Parameters

pen
PdfPen that determines the color, width, and style of the rectangle.
x
The x-coordinate of the upper-left corner of the rectangle to draw.
y
The y-coordinate of the upper-left corner of the rectangle to draw.
width
The width of the rectangle to draw.
height
The height of the rectangle to draw.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also