30 lines
861 B
C#

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
namespace DevComponents.DotNetBar.Charts
{
public class PieSeriesConverter : ExpandableObjectConverter
{
public override PropertyDescriptorCollection
GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
{
PropertyDescriptorCollection pdc = base.GetProperties(context, value, attributes);
PropertyDescriptor[] newProps = new PropertyDescriptor[pdc.Count - 1];
int n = 0;
for (int i = 0; i < pdc.Count; i++)
{
if (pdc[i].Name.Equals("SeriesType") == false)
newProps[n++] = pdc[i];
}
return new PropertyDescriptorCollection(newProps);
}
}
}