Share via


PointDConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Overrides Function CanConvertFrom ( _
    context As ITypeDescriptorContext, _
    sourceType As Type _
) As Boolean
public override bool CanConvertFrom(
    ITypeDescriptorContext context,
    Type sourceType
)
public:
virtual bool CanConvertFrom(
    ITypeDescriptorContext^ context, 
    Type^ sourceType
) override
abstract CanConvertFrom : 
        context:ITypeDescriptorContext * 
        sourceType:Type -> bool  
override CanConvertFrom : 
        context:ITypeDescriptorContext * 
        sourceType:Type -> bool
public override function CanConvertFrom(
    context : ITypeDescriptorContext, 
    sourceType : Type
) : boolean

Parameters

  • context
    Type: ITypeDescriptorContext

    An ITypeDescriptorContext that provides a format context.

  • sourceType
    Type: Type

    A Type that represents the type you want to convert from.

Return Value

Type: Boolean

.NET Framework Security

See Also

Reference

PointDConverter Class

CanConvertFrom Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace