MarginsConverter.CreateInstance Method (ITypeDescriptorContext, IDictionary)

 

Creates an Object given a set of property values for the object.

Namespace:   System.Drawing.Printing
Assembly:  System.Drawing (in System.Drawing.dll)

public override object CreateInstance(
	ITypeDescriptorContext context,
	IDictionary propertyValues
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

propertyValues
Type: System.Collections.IDictionary

An IDictionary of new property values.

Return Value

Type: System.Object

An Object representing the specified IDictionary, or null if the object cannot be created.

Exception Condition
ArgumentNullException

propertyValues is null.

The context parameter can be used to extract additional information about the environment from which this converter is being invoked. This can be null, so always check. Also, properties on the context object can return null.

.NET Framework
Available since 1.1
Return to top
Show: