ClassSizeFConverter
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
SizeFConverter()
Declaration
public SizeFConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether this instance can convert from another type.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
Parameters
typeDescriptorContext
The type descriptor context.
sourceType
Type of the source.
Returns
true if this instance can convert from the specified type descriptor context; otherwise, false.
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Determines whether this instance can be converted to another type.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
Parameters
typeDescriptorContext
The type descriptor context.
destinationType
Type of the destination.
Returns
true if this instance can be converted the specified type; otherwise, false.
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Declaration
public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source)
Parameters
typeDescriptorContext
The type descriptor context. This parameter is not used in the current implementation.
cultureInfo
The culture information.
source
The source.
Returns
The new generated SizeF object.
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts the given value object to string, using the specified culture information.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
An ITypeDescriptorContext that provides a format context. Not used in the current implementation.
culture
A CultureInfo. If null is passed, the current culture is assumed.
value
The object to convert.
destinationType
The Type to convert the value parameter to.
Returns
An object that represents the converted value.
Overrides