Table of Contents

Class WebColors

Namespace
iTextSharp.text.html
Assembly
iTextSharp.LGPLv2.Core.dll

This class is a HashMap that contains the names of colors as a key and the corresponding Color as value. (Source: Wikipedia http://en.wikipedia.org/wiki/Web_colors ) @author blowagie

public class WebColors : NullValueDictionary<string, int[]>, IDictionary, ICollection, IReadOnlyDictionary<string, int[]>, IReadOnlyCollection<KeyValuePair<string, int[]>>, ISerializable, IDeserializationCallback, INullValueDictionary<string, int[]>, IDictionary<string, int[]>, ICollection<KeyValuePair<string, int[]>>, IEnumerable<KeyValuePair<string, int[]>>, IEnumerable
Inheritance
WebColors
Implements
Inherited Members

Constructors

WebColors()

public WebColors()

Fields

Names

public static WebColors Names

Field Value

WebColors

Methods

GetRgbColor(string)

Gives you a Color based on a name. a name such as black, violet, cornflowerblue or #RGB or #RRGGBB or rgb(R,G,B) @throws IllegalArgumentException if the String isn't a know representation of a color.

public static BaseColor GetRgbColor(string name)

Parameters

name string

Returns

BaseColor

the corresponding Color object