ComponentOne PDF for .NET
FillRectangle(Color,Single,Single,Single,Single) Method

C1.C1Pdf.4 Assembly > C1.C1Pdf Namespace > C1PdfDocument Class > FillRectangle Method : FillRectangle(Color,Single,Single,Single,Single) Method
The color used to fill the rectangle.
x-coordinate of the upper-left corner of the rectangle to fill.
x-coordinate of the upper-left corner of the rectangle to fill.
Width of the rectangle to fill.
Height of the rectangle to fill.
Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
Syntax
'Declaration
 
Public Overloads Sub FillRectangle( _
   ByVal color As System.Drawing.Color, _
   ByVal x As System.Single, _
   ByVal y As System.Single, _
   ByVal width As System.Single, _
   ByVal height As System.Single _
) 
public void FillRectangle( 
   System.Drawing.Color color,
   System.float x,
   System.float y,
   System.float width,
   System.float height
)

Parameters

color
The color used to fill the rectangle.
x
x-coordinate of the upper-left corner of the rectangle to fill.
y
x-coordinate of the upper-left corner of the rectangle to fill.
width
Width of the rectangle to fill.
height
Height of the rectangle to fill.
Remarks
All coordinates are expressed in points, measured from the upper-left corner of the page.
See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List