Collapse All Expand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JavaScript

Visual Basic
C#
Visual C++
JavaScript

Easy GIS .NET API Reference
SizeDConverter..::.CanConvertFrom Method (ITypeDescriptorContext, Type)
SizeDConverter Class See Also Send Feedback

Returns a value indicating whether the converter can convert from the type specified to the SizeD type, using the specified context.

Namespace: EGIS.ShapeFileLib
Assembly: EGIS.ShapeFileLib (in EGIS.ShapeFileLib.dll)

# Syntax

Visual Basic (Declaration)
    Public Overrides Function CanConvertFrom ( _
    	context As ITypeDescriptorContext, _
    	sourceType As Type _
    ) As Boolean

C#
    public override bool CanConvertFrom(
    	ITypeDescriptorContext context,
    	Type sourceType
    )

Visual C++
    public:
    virtual bool CanConvertFrom(
    	ITypeDescriptorContext^ context,
    	Type^ sourceType
    ) override

#### Parameters

context
  Type: System.ComponentModel..::.ITypeDescriptorContext
  An ITypeDescriptorContext through which additional context can be supplied.

sourceType
  Type: System..::.Type
  A Type the represents the type you wish to convert from.

#### Return Value

true to indicate the conversion can be performed; otherwise, false.

# See Also

SizeDConverter Class
CanConvertFrom Overload
EGIS.ShapeFileLib Namespace