PixelFormatConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) PixelFormatConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) PixelFormatConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) PixelFormatConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Method

Definición

Intenta convertir una instancia de PixelFormat en un tipo especificado.Attempts to convert an instance of PixelFormat to a specified type.

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);
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

Parámetros

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

Información de contexto utilizada para la conversión.Context information used for conversion.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

Información de referencia cultural que se respeta durante la conversión.Cultural information that is respected during conversion.

value
Object Object Object Object

PixelFormat que se va a convertir.PixelFormat to convert.

destinationType
Type Type Type Type

Tipo que se evalúa para la conversión.Type being evaluated for conversion.

Devoluciones

Nueva instancia de la clase destinationType.A new instance of the destinationType.

Excepciones

value es null o no es un tipo válido.value is null or is not a valid type.

Se aplica a