Create Color object from string : Color « 2D « C# / CSharp Tutorial






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");
   }
}








27.15.Color
27.15.1.Create Color object from string
27.15.2.Create Color from R, G, B value