Default Palettes Colors

2 posts, 0 answers
  1. azeddine
    azeddine avatar
    1 posts
    Member since:
    Apr 2008

    Posted 06 Sep 2012 Link to this post

    How can I get the list of colors for the default palettes ?
  2. Boryana
    Boryana avatar
    330 posts

    Posted 10 Sep 2012 Link to this post

    Hello Azeddine,

    Thank you for contacting us.

    Each predefined palette contains a GlobalEntries collection that holds eight PaletteEntry objects. Each PaletteEntry contains four properties that specify colors: Fill, Stroke, AdditionalFill, AdditionalStroke. That said, you can easily extract the Fill colors. Please note that currently each entry specifies a single color both its Fill and Stroke. Here is a sample snippet:
    List<Color> Fills = new List<Color>();
    foreach (PaletteEntry entry in KnownPalette.Arctic.GlobalEntries)

    I hope this helps. Let me know if you have further queries.

    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. DevCraft R3 2016 release webinar banner
Back to Top