Edit

FontSizeConverter Class

Definition

Converts font size values to and from other type representations.

public ref class FontSizeConverter : System::ComponentModel::TypeConverter
public class FontSizeConverter : System.ComponentModel.TypeConverter
type FontSizeConverter = class
    inherit TypeConverter
Public Class FontSizeConverter
Inherits TypeConverter
Inheritance
FontSizeConverter

Remarks

The FontSizeConverter object supports conversion to and from the following types: include String, Int32, Single, and Double. There is no actual FontSize type, but values for font sizes are generally typed as Double, so the converter's destination type is Double.

Constructors

Name Description
FontSizeConverter()

Initializes a new instance of the FontSizeConverter class.

Methods

Name Description
CanConvertFrom(ITypeDescriptorContext, Type)

Determines if conversion from a specified type to a Double value is possible.

CanConvertTo(ITypeDescriptorContext, Type)

Determines if conversion of a font size value to a specified type is possible.

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Converts a specified type to a Double.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Converts a Double value to a specified type.

Applies to