New to Telerik UI for WPFStart a free 30-day trial

Provides functionality to convert table border settings between different formats.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class TableBordersConverter : TypeConverter

Inheritance: objectTypeConverterTableBordersConverter

Inherited Members TypeConverter.CanConvertFrom(Type)TypeConverter.CanConvertTo(Type)TypeConverter.ConvertFrom(object)TypeConverter.ConvertFromInvariantString(string)TypeConverter.ConvertFromInvariantString(ITypeDescriptorContext, string)TypeConverter.ConvertFromString(string)TypeConverter.ConvertFromString(ITypeDescriptorContext, string)TypeConverter.ConvertFromString(ITypeDescriptorContext, CultureInfo, string)TypeConverter.ConvertTo(object, Type)TypeConverter.ConvertToInvariantString(object)TypeConverter.ConvertToInvariantString(ITypeDescriptorContext, object)TypeConverter.ConvertToString(object)TypeConverter.ConvertToString(ITypeDescriptorContext, object)TypeConverter.ConvertToString(ITypeDescriptorContext, CultureInfo, object)TypeConverter.CreateInstance(IDictionary)TypeConverter.CreateInstance(ITypeDescriptorContext, IDictionary)TypeConverter.GetConvertFromException(object)TypeConverter.GetConvertToException(object, Type)TypeConverter.GetCreateInstanceSupported()TypeConverter.GetCreateInstanceSupported(ITypeDescriptorContext)TypeConverter.GetProperties(object)TypeConverter.GetProperties(ITypeDescriptorContext, object)TypeConverter.GetProperties(ITypeDescriptorContext, object, Attribute[])TypeConverter.GetPropertiesSupported()TypeConverter.GetPropertiesSupported(ITypeDescriptorContext)TypeConverter.GetStandardValues()TypeConverter.GetStandardValues(ITypeDescriptorContext)TypeConverter.GetStandardValuesExclusive()TypeConverter.GetStandardValuesExclusive(ITypeDescriptorContext)TypeConverter.GetStandardValuesSupported()TypeConverter.GetStandardValuesSupported(ITypeDescriptorContext)TypeConverter.IsValid(object)TypeConverter.IsValid(ITypeDescriptorContext, object)TypeConverter.SortProperties(PropertyDescriptorCollection, string[])...

Constructors

C#
public TableBordersConverter()

Methods

Determines whether the specified source type can be converted to the target type.

C#
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters:contextITypeDescriptorContext

An optional object that provides a format context for the conversion.

sourceTypeType

The type that is being evaluated for conversion.

Returns:

bool

True if the specified source type can be converted; otherwise, false.

Overrides: TypeConverter.CanConvertFrom(ITypeDescriptorContext, Type)

Determines whether the specified type can be converted to the target type.

C#
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters:contextITypeDescriptorContext

An object that provides a format context.

destinationTypeType

The type to convert to.

Returns:

bool

True if the type can be converted; otherwise, false.

Overrides: TypeConverter.CanConvertTo(ITypeDescriptorContext, Type)

Converts the specified object to a TableBorders instance using the provided context and culture information.

C#
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters:contextITypeDescriptorContext

An object that provides a format context for the conversion.

cultureCultureInfo

A CultureInfo object that provides culture-specific formatting information.

valueobject

The object to convert.

Returns:

object

A TableBorders instance that represents the converted value.

Overrides: TypeConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

Converts an object to a specified type using the provided type descriptor context and culture information.

C#
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters:contextITypeDescriptorContext

The type descriptor context used for the conversion.

cultureCultureInfo

The culture information that applies to the conversion.

valueobject

The object to be converted.

destinationTypeType

The type to which the object is being converted.

Returns:

object

The converted object of the specified destination type, or null if the conversion fails.

Overrides: TypeConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)