SizeConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)

 

Attempts to convert a specified object to an instance of Size.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ value
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

Provides contextual information about a component.

culture
Type: System.Globalization::CultureInfo^

Culture-specific information that should be respected during conversion.

value
Type: System::Object^

The source object that is being converted.

Return Value

Type: System::Object^

The instance of Size that is created from the converted source.

.NET Framework
Available since 3.0
Return to top
Show: