KeysConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)
.NET Framework (current version)
Converts the specified object to the converter's native type.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: virtual Object^ ConvertFrom( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value ) override
Parameters
- context
-
Type:
System.ComponentModel::ITypeDescriptorContext^
An ITypeDescriptorContext that provides a format context, which can be used to extract additional information about the environment this converter is being invoked from. This parameter or properties of this parameter can be null.
- culture
-
Type:
System.Globalization::CultureInfo^
A CultureInfo object to provide locale information.
- value
-
Type:
System::Object^
The object to convert.
| Exception | Condition |
|---|---|
| FormatException | An invalid key combination was supplied. -or- An invalid key name was supplied. |
Notes to Inheritors:
The context parameter can be used to extract additional information about the environment this converter is being invoked from. This may be null, so you should always check. Also, properties on the context object may also return null.
.NET Framework
Available since 1.1
Available since 1.1
Show: