Sprache

SizeConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Methode

Definition

Versucht, ein angegebenes Objekt in eine Instanz von Size.

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value);
public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (context As ITypeDescriptorContext, culture As CultureInfo, value As Object) As Object

Parameter

context
ITypeDescriptorContext

Stellt Kontextinformationen zu einer Komponente bereit.

culture
CultureInfo

Kulturspezifische Informationen, die bei der Konvertierung beachtet werden sollten.

value
Object

Das Quellobjekt, das konvertiert wird.

Gibt zurück

Die Instanz davon Size wird aus der konvertierten valueErstellt.

Ausnahmen

value ist null.

-oder- value kann nicht in ein Size.

Gilt für:

Siehe auch