Size3DConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

 

Attempts to convert a specified object to a Size3D structure.

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

public override object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	object value
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

Describes the context information of a type.

culture
Type: System.Globalization.CultureInfo

Describes the CultureInfo of the type being converted.

value
Type: System.Object

The object being converted.

Return Value

Type: System.Object

The Size3D structure created from the converted value.

Exception Condition
NotSupportedException

Occurs if the specified object is null or is a type that cannot be converted to to a Size3D structure.

.NET Framework
Available since 3.0
Return to top
Show: