The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
LengthConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)
.NET Framework (current version)
Converts instances of other data types into instances of Double that represent an object's length.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: virtual Object^ ConvertFrom( ITypeDescriptorContext^ typeDescriptorContext, CultureInfo^ cultureInfo, Object^ source ) override
Parameters
- typeDescriptorContext
-
Type:
System.ComponentModel::ITypeDescriptorContext^
Provides contextual information about a component.
- cultureInfo
-
Type:
System.Globalization::CultureInfo^
Represents culture-specific information that is maintained during a conversion.
- source
-
Type:
System::Object^
Identifies the object that is being converted to Double.
| Exception | Condition |
|---|---|
| ArgumentNullException | Occurs if the source is null. |
| ArgumentException | Occurs if the source is not null and is not a valid type for conversion. |
.NET Framework
Available since 3.0
Available since 3.0
Show: