DotNet 4.8.1 build of DotNetBar
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user