PaddingConverter
Converts between Padding and its comma-separated text representation.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class PaddingConverter : TypeConverter
Inheritance: objectTypeConverterPaddingConverter
Inherited Members
Constructors
public PaddingConverter()
Methods
Determines whether the specified source type can be parsed as padding.
public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
The conversion context.
sourceTypeTypeThe type to check.
Returns:Overrides:
Determines whether the specified destination type can receive the text representation of padding.
public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
The conversion context.
destinationTypeTypeThe type to check.
Returns:Overrides:
Parses four comma-separated integers in left, top, right, bottom order.
public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source)
The conversion context.
cultureInfoCultureInfoThe requested culture; conversion uses the current culture instead.
sourceobjectThe comma-separated edge values.
Returns:A Padding value with the parsed edge insets.
Overrides:
Formats a padding value as four comma-separated integers in left, top, right, bottom order.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
The conversion context.
cultureCultureInfoThe requested culture; conversion uses the current culture instead.
valueobjectThe padding value to format.
destinationTypeTypeThe requested destination type.
Returns:The comma-separated edge values.
Overrides: