FromName


Summary

Creates a color from the specified name of a predefined color.

Syntax

public static Color FromName(string name)

Parameters

NameDescription

Example 1

var greenColor = Color.FromName("Green");