Class SizeFConverter
Provides a way of converting SizeF values to other types, as well as for accessing standard values and subproperties.
Inheritance
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class SizeFConverter : TypeConverter
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
|
System.ComponentModel.ITypeDescriptorContext
typeDescriptorContext
The type descriptor context. |
|
System.Type
sourceType
Type of the source. |
Returns
|
System.Boolean
|
CanConvertTo(ITypeDescriptorContext, Type)
Determines whether this instance can be converted to another type.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
Parameters
|
System.ComponentModel.ITypeDescriptorContext
typeDescriptorContext
The type descriptor context. |
|
System.Type
destinationType
Type of the destination. |
Returns
|
System.Boolean
|
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts from System.String to SizeF.
Declaration
public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source)
Parameters
|
System.ComponentModel.ITypeDescriptorContext
typeDescriptorContext
The type descriptor context. This parameter is not used in the current implementation. |
|
System.Globalization.CultureInfo
cultureInfo
The culture information. |
|
System.Object
source
The source. |
Returns
|
System.Object
The new generated SizeF object. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value object to System.String, using the specified culture information.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
|
System.ComponentModel.ITypeDescriptorContext
context
An System.ComponentModel.ITypeDescriptorContext that provides a format context. Not used in the current implementation. |
|
System.Globalization.CultureInfo
culture
A System.Globalization.CultureInfo. If null is passed, the current culture is assumed. |
|
System.Object
value
The System.Object to convert. |
|
System.Type
destinationType
The System.Type to convert the |
Returns
|
System.Object
An System.Object that represents the converted value. |