SizeFConverter
Provides a way of converting SizeF values to other types, as well as for accessing standard values and subproperties.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class SizeFConverter : TypeConverter
Inheritance: objectTypeConverterSizeFConverter
Inherited Members
Constructors
public SizeFConverter()
Methods
Determines whether this instance can convert from another type.
public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
The type descriptor context.
sourceTypeTypeType of the source.
Returns:true if this instance can convert from the specified type descriptor context; otherwise, false.
Overrides:
Determines whether this instance can be converted to another type.
public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
The type descriptor context.
destinationTypeTypeType of the destination.
Returns:true if this instance can be converted the specified type; otherwise, false.
Overrides:
public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source)
The type descriptor context. This parameter is not used in the current implementation.
cultureInfoCultureInfoThe culture information.
sourceobjectThe source.
Returns:The new generated SizeF object.
Overrides:
Converts the given value object to string, using the specified culture information.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
An ITypeDescriptorContext that provides a format context. Not used in the current implementation.
cultureCultureInfoA CultureInfo. If null is passed, the current culture is assumed.
valueobjectThe object to convert.
destinationTypeTypeThe Type to convert the value parameter to.
An object that represents the converted value.
Overrides: