MatrixConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定义

确定是否可将一个对象从特定类型转换为 Matrix 的实例。Determines whether an object can be converted from a specific type to an instance of a Matrix.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (context As ITypeDescriptorContext, sourceType As Type) As Boolean

参数

context
ITypeDescriptorContext

类型的上下文信息。The context information of a type.

sourceType
Type

正被计算用于转换的源类型。The type of the source that is being evaluated for conversion.

返回

Boolean

如果该类型可以转换为 Matrix,则为 true;否则为 falsetrue if the type can be converted to a Matrix; otherwise, false.

适用于