ClassTableWidthUnitConverter
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
TableWidthUnitConverter()
Declaration
public TableWidthUnitConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether the specified type can be converted from a given context.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
context
The context information for the conversion; can be null.
sourceType
The type to check for conversion support.
Returns
True if the type can be converted; otherwise, false.
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Determines whether the specified type can be converted to a different type.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
context
An optional instance of ITypeDescriptorContext that provides a format context.
destinationType
The Type to convert to.
Returns
True if the conversion to the specified type is possible; otherwise, false.
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts a value from the specified object to a table width unit.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
The context in which the conversion is being performed.
culture
The culture information used to interpret the value.
value
The object to be converted.
Returns
An object representing the converted table width unit.
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts a value to a specified table width unit using the provided context and culture information.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
An instance of ITypeDescriptorContext that provides contextual information about the conversion.
culture
An instance of CultureInfo that represents the culture-specific formatting information.
value
The object to be converted.
destinationType
The 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