BrushConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Método

Definición

Convierte un objeto Brush especificado en cadena mediante el contexto y la información de referencia cultural proporcionados.Converts a Brush object to a specified type, using the specified context and culture information.

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

Parámetros

context
ITypeDescriptorContext

Contexto de conversión.The conversion context.

culture
CultureInfo

Información de la referencia cultural actual.The current culture information.

value
Object

Valor Brush que se va a convertir.The Brush to convert.

destinationType
Type

Tipo de destino al que se convierte el objeto value.The destination type that the value object is converted to.

Devoluciones

Object

Un objeto que representa el objeto value convertido.An object that represents the converted value.

Excepciones

value es NULL o no es un objeto Brushvalue is NULL or it is not a Brush

o bien-or- destinationType no es un tipo de destino válido.destinationType is not a valid destination type.

Se aplica a