Export (0) Print
Expand All

FontStyleConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

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

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

public override Object ConvertFrom(
	ITypeDescriptorContext td,
	CultureInfo ci,
	Object value
)
You cannot use methods in XAML.

Parameters

td
Type: System.ComponentModel.ITypeDescriptorContext

Describes the context information of a type.

ci
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 instance of FontStyle created from the converted value.

ExceptionCondition
NotSupportedException

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft