Color Table.` Many HTML and system colors are available. We can enumerate these in the C# language and the ASP.NET Framework. We build a table containing all named colors, making HTML easier to write. `Here we see the HTML colors in a table generated using the C# language. Then we see the code that wrote the table.`Example.` We use the Enum.GetNames method and the typeof operator along with the Where extension method. With Where, we remove Control colors from the output. Other articles describe these methods in depth. `Enum.GetName `enum-getname`Where `where`To compile the program,` add the System.Drawing assembly to your project. When you execute it, all available colors will be printed to the Console. It uses the StartsWith method and LINQ extension methods. `StartsWith, EndsWith `startswith`LINQ `linq`Discussion.` Sometimes we can create our documentation directly from the code and libraries we use. This is one example. The KnownColors can be enumerated and listed. This also helps us learn about how to use this programming language.`Summary.` This table contains the KnownColors from the System.Drawing namespace. Next we saw the console program that generates the table. A color sheet can be useful for selecting named colors for Internet articles.

345HTML color table5 activeborder activecaption activecaptiontext aliceblue antiquewhite appworkspace aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood buttonface buttonhighlight buttonshadow cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkturquoise darkviolet deeppink deepskyblue desktop dimgray dodgerblue firebrick floralwhite 4estgreen fuchsia gainsboro ghostwhite gold goldenrod gradientactivecaption gradientinactivecaption gray graytext green greenyellow highlight highlighttext honeydew hotpink hottrack inactiveborder inactivecaption inactivecaptiontext indianred indigo info infotext ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightpink lightsalmon lightseagreen lightskyblue lightslategray lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred menu menubar menuhighlight menutext midnightblue m4cream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple red rosybrown royalblue saddlebrown salmon sandybrown scrollbar seagreen seashell sienna silver skyblue slateblue slategray snow springgreen steelblue tan teal thistle tomato transparent turquoise violet wheat white whitesmoke window windowframe windowtext yellow yellowgreen5 44; 44.Drawing; 44.Linq444 { 343{5 3344enum 4s4order them by name. 334Remove Control colors. 3354 (4 c4Enum.GetNames(typeof(KnownColor)).Where( 333item => !item.4sWith("Control")).OrderBy(item => item)) 33{5 33344 table row. 33354"<b style=background:{0}>{1}</b>", 3333c.ToLower(), 3333c.ToLower().PadRight(20)); 33} 3} }5

!:generates HTML color table