Class
TableCellBordersConverter

Converts table cell borders to and from a specified format.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class TableCellBordersConverter : TypeConverter

Inheritance: objectTypeConverterTableCellBordersConverter

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

TableCellBordersConverter()

Declaration

cs-api-definition
public TableCellBordersConverter()

Methods

CanConvertFrom(ITypeDescriptorContext, Type)

Determines whether the specified type can be converted from the given context.

Declaration

cs-api-definition
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)

Parameters

context

ITypeDescriptorContext

The context of the conversion, providing information about the environment.

sourceType

Type

The type that is to be checked for conversion compatibility.

Returns

bool

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

Overrides TypeConverter.CanConvertFrom(ITypeDescriptorContext, Type)

CanConvertTo(ITypeDescriptorContext, Type)

Determines whether the specified type can be converted to a TableCellBorders object.

Declaration

cs-api-definition
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)

Parameters

context

ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

destinationType

Type

The Type that you want to convert to.

Returns

bool

True if the conversion can be performed; otherwise, false.

Overrides TypeConverter.CanConvertTo(ITypeDescriptorContext, Type)

ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

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

Declaration

cs-api-definition
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)

Parameters

context

ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

culture

CultureInfo

A CultureInfo that represents the culture specific information.

value

object

The object to convert.

Returns

object

A TableCellBorders that represents the converted value.

Overrides TypeConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)

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

Declaration

cs-api-definition
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)

Parameters

context

ITypeDescriptorContext

The context used for the conversion, which provides contextual information about the environment.

culture

CultureInfo

The culture information that influences the conversion process.

value

object

The object to be converted into a TableCellBorders.

destinationType

Type

The desired type of the conversion result.

Returns

object

Returns a TableCellBorders object that corresponds to the provided value, or null if the conversion failed.

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