Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FontFamilyConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

 

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

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

public override object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo cultureInfo,
	object o
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

Describes the context information of a type.

cultureInfo
Type: System.Globalization.CultureInfo

Cultural-specific information that should be respected during conversion.

o
Type: System.Object

The object being converted.

Return Value

Type: System.Object

The instance of FontFamily that is created from the converted o parameter.

Exception Condition
ArgumentNullException

o is null.

ArgumentException

o is not null and is not a valid type that can be converted to a FontFamily.

FontFamilyConverter supports conversion to and from the String type.

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