Skip to end of metadata
Go to start of metadata

Provides a way of converting value type to or from font family type.

Definition

public class FontFamilyTypeConverter : TypeConverter

Summary

The following table summarizes the members exposed in this class.

Public Constructors

FontFamilyTypeConverter Constructor() Initializes a new instance of the FontFamilyTypeConverter class.

Public Methods

CanConvertFrom(ITypeDescriptorContext, Type) Returns whether the type converter can convert an object from the specified type to the type of this converter.
CanConvertTo(ITypeDescriptorContext, Type) Returns whether the type converter can convert an object to the specified type.
ConvertFrom(ITypeDescriptorContext, CultureInfo, object) Converts from the specified value to the intended conversion type of the converter.
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type) Converts the specified value object to the specified type.

Public Constructors

public FontFamilyTypeConverter()

Public Methods

public bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)

Returns whether the type converter can convert an object from the specified type to the type of this converter.

Parameters

context An object that provides a format context.
sourceType The type you want to convert from.

Return Types

true if this converter can perform the conversion; otherwise, false.

public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)

Returns whether the type converter can convert an object to the specified type.

Parameters

context An object that provides a format context.
destinationType The type you want to convert to.

Return Types

true if this converter can perform the conversion; otherwise, false.

public object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)

Converts from the specified value to the intended conversion type of the converter.

Parameters

context An object that provides a format context.
culture The System.Globalization.CultureInfo to use as the current culture.
value The value to convert to the type of this converter.

Return Types

The converted value.

public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)

Converts the specified value object to the specified type.

Parameters

context An object that provides a format context..
culture The System.Globalization.CultureInfo to use as the current culture.
value The object to convert.
destinationType The type to convert the object to.

Return Types

The converted object.
  • No labels