I am attempting to draw a filled rectangle on the document.
If I do this the rectangle is filled in
Code:
XRect tableHeader = new XRect(20, 250, 550, 15);
gfx.DrawRectangle(XPens.LightBlue, XBrushes.LightBlue, tableHeader);
If I do this the outline of the rectangle is only shown.
Code:
XRect tableHeader = new XRect(20, 250, 550, 15);
XBrush tableHeaderBackground = new XSolidBrush(new XColor { R = 222, G = 234, B = 246});
gfx.DrawRectangle(XPens.LightBlue, tableHeaderBackground, tableHeader);
What am I missing here?
TIA