PieSliceStyleSelectorConverter Class
Represents a type converter for the PieSliceStyleSelector type.
public sealed class PieSliceStyleSelectorConverter : TypeConverter
- Inheritance:
- object TypeConverter object
Constructors
PieSliceStyleSelectorConverter()
Initializes an instance of the class.
public PieSliceStyleSelectorConverter()
Methods
CanConvertFrom(ITypeDescriptorContext?, Type)
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | An ITypeDescriptorContext that provides a format context. |
| sourceType | Type | A Type that represents the type you want to convert from. |
Returns
- bool:
trueif this converter can perform the conversion; otherwise,false.
ConvertFrom(ITypeDescriptorContext?, CultureInfo?, object)
Converts the given object to the type of this converter, using the specified context and culture information.
public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | An ITypeDescriptorContext that provides a format context. |
| culture | CultureInfo | The CultureInfo to use as the current culture. |
| value | object | The object to convert. |
Returns
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The conversion cannot be performed. |
Inherited Members
- object.GetType()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()