Type Default Read Only Description
[C#]
XColor

[Visual Basic]
XColor
Black No The current drawing and filling color.

 

   

Notes
 

The color used for drawing.

This property determines the color used for drawing lines, shapes, filled shapes and text.

 

   

Example
 

The following code creates a PDF document with a red background.

[C#]

using (Doc doc = new Doc()) {
  doc.Color.String = "255 0 0";
  doc.FillRect();
  doc.Save(Server.MapPath("doccolor.pdf"));
}


[Visual Basic]
Using doc As New Doc()
  doc.Color.String = "255 0 0"
  doc.FillRect()
  doc.Save(Server.MapPath("doccolor.pdf"))
End Using


doccolor.pdf