ComponentOne PDF for WPF and Silverlight
FillRectangle(Color,Double,Double,Double,Double) Method

C1.Silverlight.Pdf.5 Assembly > C1.Silverlight.Pdf Namespace > C1PdfDocument Class > FillRectangle Method : FillRectangle(Color,Double,Double,Double,Double) Method
The object that determines 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 brush As Color, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal width As Double, _
   ByVal height As Double _
) 
public void FillRectangle( 
   Color brush,
   double x,
   double y,
   double width,
   double height
)

Parameters

brush
The object that determines 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