Hi Douglas,
It is possible to fill the rectangle with some color and draw a text over it. Could you please refer the following lines.
// Draw the rectangle
doc.LastPage.Graphics.DrawRectangle(new RectangleF(100,70,200,100),state);
state.ForeColor=Color.White;
doc.LastPage.Graphics.DrawMultiText(new PointF(170,110),100,"Visible Text",font,state);
We can make the text invisible by setting the property state’s back color value same as rectangle’s back color value.
Here is the sample for your reference.
Rectangle.zip
Could you please take a look at this and let me if you have any other problems.
Regards,
Prakash.