34 lines
947 B
C#
34 lines
947 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Globalization;
|
|
|
|
namespace DevComponents.DotNetBar.Charts.Primitives
|
|
{
|
|
#region BlankExpandableObjectConverter
|
|
|
|
///<summary>
|
|
/// BlankExpandableObjectConverter
|
|
///</summary>
|
|
public class BlankExpandableObjectConverter : ExpandableObjectConverter
|
|
{
|
|
///<summary>
|
|
/// ConvertTo
|
|
///</summary>
|
|
///<param name="context"></param>
|
|
///<param name="culture"></param>
|
|
///<param name="value"></param>
|
|
///<param name="destinationType"></param>
|
|
///<returns></returns>
|
|
public override object ConvertTo(
|
|
ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
|
|
{
|
|
if (destinationType == typeof(string))
|
|
return (" ");
|
|
|
|
return (base.ConvertTo(context, culture, value, destinationType));
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|