Type Default Read Only Description
[C#]
XColor

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

 

   

Notes
 

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#]
Doc theDoc = new Doc();
theDoc.Color.String = "255 0 0";
theDoc.FillRect();
theDoc.Save(Server.MapPath("doccolor.pdf"));
theDoc.Clear();

[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.Color.String = "255 0 0"
theDoc.FillRect()
theDoc.Save(Server.MapPath("doccolor.pdf"))
theDoc.Clear()


doccolor.pdf