PixelFormatConverter.ConvertTo Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Versucht, eine Instanz eines PixelFormat angegebenen Typs zu konvertieren.
public:
override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, 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 (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object
Parameter
- context
- ITypeDescriptorContext
Kontextinformationen, die für die Konvertierung verwendet werden.
- culture
- CultureInfo
Kulturelle Informationen, die bei der Umwandlung beachtet werden.
- value
- Object
PixelFormat um zu konvertieren.
- destinationType
- Type
Typ, der für die Konvertierung ausgewertet wird.
Gibt zurück
Eine neue Instanz der destinationType.
- Attribute
Ausnahmen
value ist null oder ist kein gültiger Typ.