Color.FromName : Color « System.Drawing « C# / C Sharp by API






Color.FromName

 
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;


public class MainClass{
   public static void Main(){
    Color currColor = Color.FromName("Blue");
   }
}

   
  








Related examples in the same category

1.Color.AliceBlue
2.Color.Chocolate
3.Color.FromArgb (int r, int g, int b)
4.Color.FromArgb(100, Color.Blue)
5.Color.FromArgb(77, color.R, color.G, color.B)
6.Color.FromKnownColor
7.Color.LightGray
8.Color.Tomato
9.Color.White