Modifica

Condividi tramite


ColorConverter.ConvertFrom Method

Definition

Attempts to convert the specified object to a Color.

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ td, System::Globalization::CultureInfo ^ ci, System::Object ^ value);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext td, System.Globalization.CultureInfo ci, object value);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (td As ITypeDescriptorContext, ci As CultureInfo, value As Object) As Object

Parameters

td
ITypeDescriptorContext

Describes the context information of a type.

ci
CultureInfo

Cultural information to respect during conversion.

value
Object

The object being converted.

Returns

The Color created from converting value.

Remarks

To determine whether a conversion is possible without actually performing the conversion, use the CanConvertFrom method.

Applies to