XFINIUM.PDF Documentation
DrawRectangle(PdfPen,PdfBrush,Double,Double,Double,Double) Method



Xfinium.Pdf.Graphics Namespace > PdfGraphics Class > DrawRectangle Method : DrawRectangle(PdfPen,PdfBrush,Double,Double,Double,Double) Method
PdfPen that determines the color, width, and style of the rectangle.
PdfBrush that determines the characteristics of the fill.
The x-coordinate of the upper-left corner of the rectangle to draw.
The y-coordinate of the upper-left corner of the rectangle to draw.
Width of the rectangle to draw.
Height of the rectangle to draw.
Draws and fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
Syntax
'Declaration
 
Public Overloads Sub DrawRectangle( _
   ByVal pen As PdfPen, _
   ByVal brush As PdfBrush, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal width As Double, _
   ByVal height As Double _
) 
'Usage
 
Dim instance As PdfGraphics
Dim pen As PdfPen
Dim brush As PdfBrush
Dim x As Double
Dim y As Double
Dim width As Double
Dim height As Double
 
instance.DrawRectangle(pen, brush, x, y, width, height)
public void DrawRectangle( 
   PdfPen pen,
   PdfBrush brush,
   double x,
   double y,
   double width,
   double height
)
public:
void DrawRectangle( 
   PdfPen^ pen,
   PdfBrush^ brush,
   double x,
   double y,
   double width,
   double height
) 

Parameters

pen
PdfPen that determines the color, width, and style of the rectangle.
brush
PdfBrush that determines the characteristics of the fill.
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
Width of the rectangle to draw.
height
Height of the rectangle to draw.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfGraphics Class
PdfGraphics Members
Overload List