FontConverter
Namespace: System.Drawing
Assembly: System.Drawing.Managed (4.0.0.0)
FontConverter is a class that can be used to convert fonts from one data type to another. Access this class through the TypeDescriptor.
- C#
- VB.NET
public class FontConverter : TypeConverter
Public Class FontConverter
Inherits TypeConverter
Constructors
FontConverter()
Initializes a new instance of FontConverter.
Methods
CanConvertFrom(context, sourceType)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | |
| sourceType | Type |
Returns: Boolean.
CanConvertTo(context, destinationType)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | |
| destinationType | Type |
Returns: Boolean.
ConvertFrom(context, culture, value)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | |
| culture | CultureInfo | |
| value | Object |
Returns: Object.
ConvertTo(context, culture, value, destinationType)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | |
| culture | CultureInfo | |
| value | Object | |
| destinationType | Type |
Returns: Object.
CreateInstance(context, propertyValues)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | |
| propertyValues | IDictionary |
Returns: Object.
GetCreateInstanceSupported(context)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext |
Returns: Boolean.
GetProperties(context, value, attributes)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext | |
| value | Object | |
| attributes | Attribute[] |
Returns: PropertyDescriptorCollection.
GetPropertiesSupported(context)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext |
Returns: Boolean.
GetStandardValuesExclusive(context)
| Parameter | Type | Description |
|---|---|---|
| context | ITypeDescriptorContext |
Returns: Boolean.