SizeFConverter.CreateInstance(ITypeDescriptorContext, IDictionary) 方法

定义

使用指定的上下文创建带有指定属性值的 SizeF 的实例。Creates an instance of a SizeF with the specified property values using the specified context.

public:
 override System::Object ^ CreateInstance(System::ComponentModel::ITypeDescriptorContext ^ context, System::Collections::IDictionary ^ propertyValues);
public override object CreateInstance (System.ComponentModel.ITypeDescriptorContext context, System.Collections.IDictionary propertyValues);
override this.CreateInstance : System.ComponentModel.ITypeDescriptorContext * System.Collections.IDictionary -> obj
Public Overrides Function CreateInstance (context As ITypeDescriptorContext, propertyValues As IDictionary) As Object

参数

context
ITypeDescriptorContext

ITypeDescriptorContext,用来提供附加上下文。An ITypeDescriptorContext through which additional context can be supplied.

propertyValues
IDictionary

包含属性名称和值的 IDictionaryAn IDictionary containing property names and values.

返回

Object

一个 Object,表示新的 SizeF;或者如果无法创建该对象,则为 nullAn Object representing the new SizeF, or null if the object cannot be created.

适用于