BrushConverter.ConvertTo Metod

Definition

Konverterar ett Brush objekt till en angiven typ med hjälp av den angivna kontext- och kulturinformationen.

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

Parametrar

context
ITypeDescriptorContext

Konverteringskontexten.

culture
CultureInfo

Aktuell kulturinformation.

value
Object

Att Brush konvertera.

destinationType
Type

Måltypen som value objektet konverteras till.

Returer

Ett objekt som representerar den konverterade value.

Undantag

value är NULL eller så är det inte en Brush

-eller-

destinationType är inte en giltig måltyp.

Gäller för