PDFReaderControls.NET Professional Type Reference

Color.Parse Method 

Parse a string to extract a color.

public static Color Parse(
   string color
);

Parameters

color
A string describing a color.

Return Value

A Color.

Remarks

The string representation of a color can be on of the following:

FormatDescription
#RRGGBB Web color. Each component is a 2-digit hexadecimal number (00 - FF). For example: #9963FA
gray Gray color. gray is a value in the range 0 - 255. For example: 128
r,g,b RGB color. Each component is a value in the range 0 - 255. For example: 128,5,233
c,m,y,k CMYK color. Each component is a value in the range 0 - 255. For example: 12,255,6,128
ColorName A named color. Currently supported are all named colors available in System.Drawing.Color. For example: SkyBlue
Instead of the fixed values (0-255) also a relative value (0%-100%) is allowed. This is converted to 0-255.

See Also

Color Class | TallComponents.PDF.Colors Namespace