ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
Collapse the table of content
Expand the table of content

FontStretchConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

 

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

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

public override object ConvertFrom(
	ITypeDescriptorContext td,
	CultureInfo ci,
	object value
)

Parameters

td
Type: System.ComponentModel.ITypeDescriptorContext

Context information of a type.

ci
Type: System.Globalization.CultureInfo

CultureInfo of the type being converted.

value
Type: System.Object

The object being converted.

Return Value

Type: System.Object

The instance of FontStretch created from the converted value.

Exception Condition
ArgumentException

value is null or is not a valid type for conversion.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft