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
)
public Object ConvertFrom (
	ITypeDescriptorContext td, 
	CultureInfo ci, 
	Object value
)
public override function ConvertFrom (
	td : ITypeDescriptorContext, 
	ci : CultureInfo, 
	value : Object
) : Object
You cannot use methods in XAML.

Parameters

td

Describes the context information of a type.

ci

Describes the CultureInfo of the type being converted.

value

The object being converted.

Return Value

The instance of FontStyle created from the converted value.

Exception typeCondition

NotSupportedException

Occurs if value is a null reference (Nothing in Visual Basic) or is not a valid type for conversion.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft