PaddingsConverter
Provides a unified way of converting ChartMargins type values to other types, as well as for accessing standard values and sub properties.
Definition
Namespace:Telerik.Reporting.Charting.Styles
Assembly:Telerik.Reporting.dll
Syntax:
public class PaddingsConverter : TypeConverter
Inheritance: objectTypeConverterPaddingsConverter
Constructors
public PaddingsConverter()
Methods
Checks the possibility to convert from a different object type
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
sourceTypeTypeThe type to convert from
Returns:bool
True if conversion is possible
Overrides:
Converts the given object to the ChartPaddings, using the specified context and culture information.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
cultureCultureInfoCurrent culture settings
valueobjectReturns:object
An System.Object that represents the converted value.
Overrides:
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
The System.Type to convert the value parameter to.
Returns:object
An System.Object that represents the converted value.
Overrides:
Creates an instance of the type that this PaddingsConverter is associated with, using the specified context, given a set of property values for the object.
public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
propertyValuesIDictionaryAn System.Collections.IDictionary of new property values.
Returns:object
An System.Object representing the given System.Collections.IDictionary, or null if the object cannot be created.
Overrides:
Returns whether changing a value on this object requires a call to System.ComponentModel.TypeConverter.CreateInstance(System.Collections.IDictionary) to create a new value, using the specified context.
public override bool GetCreateInstanceSupported(ITypeDescriptorContext context)
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
Returns:bool
true
Overrides:
GetProperties(ITypeDescriptorContext, object, Attribute[])
PropertyDescriptorCollection
Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes.
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
valueobjectAn System.Object that specifies the type of array for which to get properties.
attributesAttribute[]An array of type System.Attribute that is used as a filter.
Returns:PropertyDescriptorCollection
A System.ComponentModel.PropertyDescriptorCollection with the properties that are exposed for this data type, or null if there are no properties.
Overrides:
Returns whether this object supports properties, using the specified context.
public override bool GetPropertiesSupported(ITypeDescriptorContext context)
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
Returns:bool
true
Overrides: