Exemplo n.º 1
0
        public static string ToDescriptionString(this LegendPosition val)
        {
            var attributes = (DescriptionAttribute[])val.GetType().GetField(val.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), false);

            return(attributes.Length > 0 ? attributes[0].Description : string.Empty);
        }
Exemplo n.º 2
0
 public LegendOptions Position(LegendPosition position)
 {
     return(SetValue(Field.Position, position.ToString().ToLower()));
 }
Exemplo n.º 3
0
 public LegendOptions Position(LegendPosition position)
 {
     return SetValue(Field.Position, position.ToString().ToLower());
 }