FontTypeConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Converts a specified object to a GlyphRun.

Namespace:   System.Windows.Xps.Serialization
Assembly:  ReachFramework (in ReachFramework.dll)

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

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

An object that provides contextual information.

culture
Type: System.Globalization.CultureInfo

The language and culture that are used during the conversion.

value
Type: System.Object

The object that is converted.

Return Value

Type: System.Object

The new GlyphRun object.

Exception Condition
NotImplementedException

This method is called from this class instead of from a derived class.

ArgumentNullException

The value is null.

NotSupportedException

The value is not a type that can be converted.

This method is not implemented in this class—except to throw the exceptions. See Notes for Inheritors.

Notes to Inheritors:

Override this method to provide a conversion method. Use the context parameter to extract additional information about the environment from which this converter is invoked. Use the culture parameter to provide information about the language or culture.

.NET Framework
Available since 3.0
Return to top
Show: