public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destType) { if (destType == typeof(string) && value is PointHelper) { // Cast the value to an Employee type PointHelper pp = (PointHelper)value; return(pp.Channelname + ", " + pp.Pointvalue); } return(base.ConvertTo(context, culture, value, destType)); }
public bool Contains(PointHelper value) { // If value is not of type Int16, this will return false. return(List.Contains(value)); }
public void Remove(PointHelper value) { List.Remove(value); }
public void Insert(int index, PointHelper value) { List.Insert(index, value); }
public int IndexOf(PointHelper value) { return(List.IndexOf(value)); }
public int Add(PointHelper value) { return(List.Add(value)); }