In This Article

PieSliceStyleSelectorConverter Class

Represents a type converter for the SeriesStyleSelector type.

public sealed class PieSliceStyleSelectorConverter : TypeConverter
Inheritance:
Object Object

Constructors

PieSliceStyleSelectorConverter()

public PieSliceStyleSelectorConverter()

Methods

CanConvertFrom(ITypeDescriptorContext, Type)

Returns whether the type converter can convert an object from the specified type to the type of this converter.

public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameter Type Description
context ITypeDescriptorContext

An object that provides a format context.

sourceType Type

The type you want to convert from.

Returns

Boolean:

true if this converter can perform the conversion; otherwise, false.

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Converts from the specified value to the intended conversion type of the converter.

public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameter Type Description
context ITypeDescriptorContext

An object that provides a format context.

culture CultureInfo

The CultureInfo to use as the current culture.

value Object

The value to convert to the type of this converter.

Returns

Object:

The converted value.