Results 1 to 2 of 2

Thread: How to enumerate colors in System.Drawing.KnownColor

  1. #1

    Thread Starter
    Registered User jackgreenfox's Avatar
    Join Date
    Oct 2002
    Location
    China
    Posts
    35

    How to enumerate colors in System.Drawing.KnownColor

    How to enumerate colors in System.Drawing.KnownColor?

  2. #2
    New Member
    Join Date
    Feb 2004
    Posts
    1

    Lightbulb

    Code:
    System.Drawing.Color c;
    foreach (string s in Enum.GetNames(typeof(System.Drawing.KnownColor)))
    {
    c = System.Drawing.Color.FromName(s);
    }
    Divinity and Lust are forever forbidden to meet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width