CornerRadiusConverter.ConvertTo Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Konverterar den angivna CornerRadius till den angivna typen.
public:
override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
[<System.Security.SecurityCritical>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (typeDescriptorContext As ITypeDescriptorContext, cultureInfo As CultureInfo, value As Object, destinationType As Type) As Object
Parametrar
- typeDescriptorContext
- ITypeDescriptorContext
Beskriver kontextinformationen för en typ.
- cultureInfo
- CultureInfo
Beskriver vilken CultureInfo typ som konverteras.
- value
- Object
Att CornerRadius konvertera.
- destinationType
- Type
Den typ som ska konverteras CornerRadius till.
Returer
Objektet som skapades från konverteringen av detta CornerRadius (en sträng).
- Attribut
Undantag
value är null.
value är inte null och är inte en Brush, eller om destinationType inte är en av de giltiga måltyperna.
Kommentarer
destinationType måste vara String.