Partilhar via


MathTypeConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

Note

This method is available only when developing for Windows.

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

Namespace: Microsoft.Xna.Framework.Design
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public override bool CanConvertFrom (
         ITypeDescriptorContext context,
         Type sourceType
)

Parameters

  • context
    The format context.
  • sourceType
    The type you want to convert from.

Return Value

true if this converter can perform the conversion; false otherwise.

See Also

Reference

MathTypeConverter Class
MathTypeConverter Members
Microsoft.Xna.Framework.Design Namespace

Platforms

Windows XP SP2, Windows Vista