Provides functionality to convert table border settings between different formats.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class TableBordersConverter : TypeConverter
Inheritance: objectTypeConverterTableBordersConverter
Inherited Members
Constructors
public TableBordersConverter()
Methods
Determines whether the specified source type can be converted to the target type.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
An optional object that provides a format context for the conversion.
sourceTypeTypeThe type that is being evaluated for conversion.
Returns:True if the specified source type can be converted; otherwise, false.
Overrides:
Determines whether the specified type can be converted to the target type.
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
An object that provides a format context.
destinationTypeTypeThe type to convert to.
Returns:True if the type can be converted; otherwise, false.
Overrides:
Converts the specified object to a TableBorders instance using the provided context and culture information.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
An object that provides a format context for the conversion.
cultureCultureInfoA CultureInfo object that provides culture-specific formatting information.
valueobjectThe object to convert.
Returns:A TableBorders instance that represents the converted value.
Overrides:
Converts an object to a specified type using the provided type descriptor context and culture information.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
The type descriptor context used for the conversion.
cultureCultureInfoThe culture information that applies to the conversion.
valueobjectThe object to be converted.
destinationTypeTypeThe type to which the object is being converted.
Returns:The converted object of the specified destination type, or null if the conversion fails.
Overrides: