GridLengthConverter.CanConvertFrom(ITypeDescriptorContext, Type) 메서드

정의

지정된 형식에서 인스턴스로 클래스를 변환할 GridLength수 있는지 여부를 결정합니다.

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

매개 변수

typeDescriptorContext
ITypeDescriptorContext

형식의 컨텍스트 정보를 설명합니다.

sourceType
Type

변환을 위해 평가되는 원본의 형식입니다.

반품

true 변환기가 지정된 형식에서 의 GridLength인스턴스로 변환할 수 있으면 이고, false그렇지 않으면 .

설명

GridLengthConverter에서는 다음 형식StringDecimalSingleDoubleInt16Int32Int64UInt16UInt32UInt64으로 변환을 지원합니다.

적용 대상

추가 정보