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.
GridLengthConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)
.NET Framework (current version)
Attempts to convert a specified object to an instance of GridLength.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: virtual Object^ ConvertFrom( ITypeDescriptorContext^ typeDescriptorContext, CultureInfo^ cultureInfo, Object^ source ) override
Parameters
- typeDescriptorContext
-
Type:
System.ComponentModel::ITypeDescriptorContext^
Describes the context information of a type.
- cultureInfo
-
Type:
System.Globalization::CultureInfo^
Cultural specific information that should be respected during conversion.
- source
-
Type:
System::Object^
The object being converted.
Return Value
Type: System::Object^The instance of GridLength that is created from the converted source.
| Exception | Condition |
|---|---|
| ArgumentNullException | source object is null. |
| ArgumentException | source object is not null and is not a valid type that can be converted to a GridLength. |
.NET Framework
Available since 3.0
Available since 3.0
Show: