GridLengthConverter.CanConvertFrom(ITypeDescriptorContext, Type) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 형식에서 인스턴스로 클래스를 변환할 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으로 변환을 지원합니다.