Export (0) Print
Expand All

FontTypeConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

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.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft