Provides methods to convert table width units.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class TableWidthUnitConverter : TypeConverter
Inheritance: objectTypeConverterTableWidthUnitConverter
Inherited Members
Constructors
public TableWidthUnitConverter()
Methods
Determines whether the specified type can be converted from a given context.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
The context information for the conversion; can be null.
sourceTypeTypeThe type to check for conversion support.
Returns:True if the type can be converted; otherwise, false.
Overrides:
Determines whether the specified type can be converted to a different type.
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
An optional instance of ITypeDescriptorContext that provides a format context.
destinationTypeTypeThe Type to convert to.
Returns:True if the conversion to the specified type is possible; otherwise, false.
Overrides:
Converts a value from the specified object to a table width unit.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
The context in which the conversion is being performed.
cultureCultureInfoThe culture information used to interpret the value.
valueobjectThe object to be converted.
Returns:An object representing the converted table width unit.
Overrides:
Converts a value to a specified table width unit using the provided context and culture information.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
An instance of ITypeDescriptorContext that provides contextual information about the conversion.
cultureCultureInfoAn instance of CultureInfo that represents the culture-specific formatting information.
valueobjectThe object to be converted.
destinationTypeTypeThe Type to which the value should be converted.
Returns:The converted value as an object of the specified destination type, or null if the conversion cannot be performed.
Overrides: