Class
TableWidthUnitConverter

Provides methods to convert table width units.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class TableWidthUnitConverter : TypeConverter

Inheritance: objectTypeConverterTableWidthUnitConverter

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

TableWidthUnitConverter()

Declaration

cs-api-definition
public TableWidthUnitConverter()

Methods

CanConvertFrom(ITypeDescriptorContext, Type)

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

Declaration

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

Parameters

context

ITypeDescriptorContext

The context information for the conversion; can be null.

sourceType

Type

The type to check for conversion support.

Returns

bool

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

Overrides TypeConverter.CanConvertFrom(ITypeDescriptorContext, Type)

CanConvertTo(ITypeDescriptorContext, Type)

Determines whether the specified type can be converted to a different type.

Declaration

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

Parameters

context

ITypeDescriptorContext

An optional instance of ITypeDescriptorContext that provides a format context.

destinationType

Type

The Type to convert to.

Returns

bool

True if the conversion to the specified type is possible; otherwise, false.

Overrides TypeConverter.CanConvertTo(ITypeDescriptorContext, Type)

ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

Converts a value from the specified object to a table width unit.

Declaration

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

Parameters

context

ITypeDescriptorContext

The context in which the conversion is being performed.

culture

CultureInfo

The culture information used to interpret the value.

value

object

The object to be converted.

Returns

object

An object representing the converted table width unit.

Overrides TypeConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)

Converts a value to a specified table width unit 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

An instance of ITypeDescriptorContext that provides contextual information about the conversion.

culture

CultureInfo

An instance of CultureInfo that represents the culture-specific formatting information.

value

object

The object to be converted.

destinationType

Type

The Type to which the value should be converted.

Returns

object

The converted value as an object of the specified destination type, or null if the conversion cannot be performed.

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