Share via


ShadowTypeConverter.ConvertTo Method

Definition

Converts a Shadow to a string.

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

Parameters

context
ITypeDescriptorContext

The context to use for conversion.

culture
CultureInfo

The culture to use for conversion.

value
Object

The Shadow to convert.

destinationType
Type

The type to convert to.

Returns

A string representation of the Shadow.

Exceptions

Thrown when value is null.

Thrown when value is not a Shadow or the Brush is not a SolidColorBrush.

Applies to