NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ColorConverter.ConvertFrom

Converts the given object to the converter's native type.

[Visual Basic]
Overrides Public Function ConvertFrom( _
   ByVal context As ITypeDescriptorContext, _
   ByVal value As Object, _
   ByVal arguments() As Object _
) As Object
[C#]
public override object ConvertFrom(
   ITypeDescriptorContext context,
   object value,
   object[] arguments
);
[C++]
public: override Object* ConvertFrom(
   ITypeDescriptorContext* context,
   Object* value,
   Object* arguments[]
);
[JScript]
public override function ConvertFrom(
   context : ITypeDescriptorContext,
   value : Object,
   arguments : Object[]
) : Object;

Parameters

context
A formatter context. This object can be used to extract additional information about the environment this converter is being invoked from. This may be null, so you should always check. Also, properties on the context object may also return null.
value
The object to convert.
arguments
An optional array of arguments to use when doing the conversion. The number and content of these arguments is dependent on the implementer of the value formatter.

Return Value

The converted object. This will throw an excetpion if the converson could not be performed.

See Also

ColorConverter Class | ColorConverter Members | System.Drawing Namespace