ClassTableCellBordersConverter
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
TableCellBordersConverter()
Declaration
public TableCellBordersConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether the specified type can be converted from the given context.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
context
The context of the conversion, providing information about the environment.
sourceType
The type that is to be checked for conversion compatibility.
Returns
true if the specified type can be converted; otherwise, false.
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Determines whether the specified type can be converted to a TableCellBorders object.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
context
An ITypeDescriptorContext that provides a format context.
destinationType
The Type that you want to convert to.
Returns
True if the conversion can be performed; otherwise, false.
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts the specified object to a TableCellBorders using the provided context and culture information.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
An ITypeDescriptorContext that provides a format context.
culture
A CultureInfo that represents the culture specific information.
value
The object to convert.
Returns
A TableCellBorders that represents the converted value.
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts the specified object to a TableCellBorders using the provided context and culture information.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
The context used for the conversion, which provides contextual information about the environment.
culture
The culture information that influences the conversion process.
value
The object to be converted into a TableCellBorders.
destinationType
The desired type of the conversion result.
Returns
Returns a TableCellBorders object that corresponds to the provided value, or null if the conversion failed.
Overrides