Class PaddingLengthConverter
Converts instances of other types to and from PaddingLength instances.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class PaddingLengthConverter : LengthConverter
Methods
View SourceConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts instances of other data types into instances of double that represent an object's length.
Declaration
public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | typeDescriptorContext | Provides contextual information about a component. |
| CultureInfo | cultureInfo | Represents culture-specific information that is maintained during a conversion. |
| object | source | Identifies the object that is being converted to double. |
Returns
| Type | Description |
|---|---|
| object | An instance of double that is the value of the conversion. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Occurs if the |
| ArgumentException | Occurs if the |
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts other types into instances of double that represent an object's length.
Declaration
public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | typeDescriptorContext | Describes context information of a component, such as its container and PropertyDescriptor. |
| CultureInfo | cultureInfo | Identifies culture-specific information, including the writing system and the calendar that is used. |
| object | value | Identifies the object that is being converted. |
| Type | destinationType | The data type that this instance of double is being converted to. |
Returns
| Type | Description |
|---|---|
| object | A new object that is the value of the conversion. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Occurs if the |
| ArgumentException | Occurs if the |