Språk

CornerRadiusConverter.ConvertFrom Metod

Definition

Konverterar det angivna objektet till en CornerRadius.

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

Parametrar

typeDescriptorContext
ITypeDescriptorContext

Beskriver kontextinformationen för en typ.

cultureInfo
CultureInfo

Beskriver vilken CultureInfo typ som konverteras.

source
Object

Objektet som konverteras.

Returer

Den skapade från konverteringen CornerRadiussource.

Undantag

source är null.

source är inte null och är inte en giltig typ som kan konverteras till en CornerRadius.

Gäller för