Språk

GeometryConverter.ConvertTo Metod

Definition

Konverterar den angivna Geometry till den angivna typen.

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

Parametrar

context
ITypeDescriptorContext

Kontextinformation som krävs för konvertering.

culture
CultureInfo

Kulturell information som respekteras under konverteringen.

value
Object

Att Geometry konvertera.

destinationType
Type

Den typ som ska konverteras Geometry till.

Returer

Objektet som skapades från konverteringen av detta Geometry.

Undantag

value är null eller inte är en Geometry, eller kan destinationType inte konverteras till en Geometry.

Gäller för