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!

SizeConverter.CanConvertFrom

Determines if this converter can convert an object in the given source type to the native type of the converter.

[Visual Basic]
Overrides Public Function CanConvertFrom( _
   ByVal context As ITypeDescriptorContext, _
   ByVal sourceType As Type _
) As Boolean
[C#]
public override bool CanConvertFrom(
   ITypeDescriptorContext context,
   Type sourceType
);
[C++]
public: override bool CanConvertFrom(
   ITypeDescriptorContext* context,
   Type* sourceType
);
[JScript]
public override function CanConvertFrom(
   context : ITypeDescriptorContext,
   sourceType : Type
) : Boolean;

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.
sourceType
The type you wish to convert from.

Return Value

True if this object can perform the conversion.

See Also

SizeConverter Class | SizeConverter Members | System.Drawing Namespace