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.
ThicknessConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)
.NET Framework (current version)
Attempts to create an instance of Thickness from a specified object.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: virtual Object^ ConvertFrom( ITypeDescriptorContext^ typeDescriptorContext, CultureInfo^ cultureInfo, Object^ source ) override
Parameters
- typeDescriptorContext
-
Type:
System.ComponentModel::ITypeDescriptorContext^
The context information for a type.
- cultureInfo
-
Type:
System.Globalization::CultureInfo^
The CultureInfo of the type being converted.
- source
-
Type:
System::Object^
The sourceObject being converted.
| Exception | Condition |
|---|---|
| ArgumentNullException | The source object is a null reference (Nothing in Visual Basic). |
| ArgumentException | The example object is not a null reference and is not a valid type that can be converted to a Thickness. |
.NET Framework
Available since 3.0
Available since 3.0
Show: