PixelFormatConverter::ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

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

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ td, 
	CultureInfo^ ci, 
	Object^ o
) override

Parameters

td
Type: System.ComponentModel::ITypeDescriptorContext

Type context information used for conversion.

ci
Type: System.Globalization::CultureInfo

Cultural information that is respected during conversion.

o
Type: System::Object

The object being converted.

Return Value

Type: System::Object
An Object that represents the converted value.

ExceptionCondition
NotSupportedException

o is nullptr or is an invalid type.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft