Converts table cell borders to and from a specified format.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class TableCellBordersConverter : TypeConverter
Inheritance: objectTypeConverterTableCellBordersConverter
Inherited Members
Constructors
public TableCellBordersConverter()
Methods
Determines whether the specified type can be converted from the given context.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
The context of the conversion, providing information about the environment.
sourceTypeTypeThe type that is to be checked for conversion compatibility.
Returns:true if the specified type can be converted; otherwise, false.
Overrides:
Determines whether the specified type can be converted to a TableCellBorders object.
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
An ITypeDescriptorContext that provides a format context.
destinationTypeTypeThe Type that you want to convert to.
Returns:True if the conversion can be performed; otherwise, false.
Overrides:
Converts the specified object to a TableCellBorders using the provided context and culture information.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
An ITypeDescriptorContext that provides a format context.
cultureCultureInfoA CultureInfo that represents the culture specific information.
valueobjectThe object to convert.
Returns:A TableCellBorders that represents the converted value.
Overrides:
Converts the specified object to a TableCellBorders using the provided context and culture information.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
The context used for the conversion, which provides contextual information about the environment.
cultureCultureInfoThe culture information that influences the conversion process.
valueobjectThe object to be converted into a TableCellBorders.
destinationTypeTypeThe desired type of the conversion result.
Returns:Returns a TableCellBorders object that corresponds to the provided value, or null if the conversion failed.
Overrides: