FontSizeConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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. |