XColor String Property. The color as a string. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

 

Type Default Read Only Description
[C#] string

[Visual Basic]
String
"0 0 0" No The color as a string.

 

   

Notes
 

Allows you access to the color as a string.

If the color is in the RGB color space then the string contains three values representing the Red, Green and Blue levels. For example "100 150 200".

If the color is in the CMYK color space then the string contains four values representing the Cyan, Magenta, Yellow and Black levels. For example "30 60 90 10".

If the color is in the Grayscale color space then the string contains one value representing the Gray level. For example "150".

You can use the ColorSpace property to find the current color space for the color.

Alpha values can be indicated by prepending an 'a' to an extra component. For example "30 60 90 a120" would indicate an RGB value with an alpha value of 120.

 

   

Example
 

None.