Exemple #1
0
 /// <summary>
 /// Creates a ExtendedColors structure from the
 /// </summary>
 /// <param name="color">Enumeration of type KnownExtendedColors</param>
 /// <returns>The ExtendedColors structure that this method creates based on given enumeration otherwise an empty ExtendedColors.</returns>
 public static ExtendedColors FromKnownColor(KnownExtendedColors color)
 {
     if (IsEnumValid(unchecked ((int)color), (int)KnownExtendedColors.AbaloneShell, (int)KnownExtendedColors.ZurichWhite)) // end side
     {
         return(ExtendedColors.FromName(color.ToString()));
     }
     return(new ExtendedColors(color));
 }