ClassTableBordersConverter
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
TableBordersConverter()
Declaration
public TableBordersConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether the specified source type can be converted to the target type.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
context
An optional object that provides a format context for the conversion.
sourceType
The type that is being evaluated for conversion.
Returns
True if the specified source type can be converted; otherwise, false.
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Determines whether the specified type can be converted to the target type.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
context
An object that provides a format context.
destinationType
The type to convert to.
Returns
True if the type can be converted; otherwise, false.
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts the specified object to a TableBorders instance using the provided context and culture information.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
An object that provides a format context for the conversion.
culture
A CultureInfo object that provides culture-specific formatting information.
value
The object to convert.
Returns
A TableBorders instance that represents the converted value.
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts an object to a specified type using the provided type descriptor context and culture information.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
The type descriptor context used for the conversion.
culture
The culture information that applies to the conversion.
value
The object to be converted.
destinationType
The type to which the object is being converted.
Returns
The converted object of the specified destination type, or null if the conversion fails.
Overrides