System.Bindings.Outputs.IValueRefConverter.CanConvert
Delphi
function CanConvert(AFrom, ATo: PTypeInfo): Boolean;
C++
virtual bool __fastcall CanConvert(System::Typinfo::PTypeInfo AFrom, System::Typinfo::PTypeInfo ATo) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bindings.Outputs.pas System.Bindings.Outputs.hpp |
System.Bindings.Outputs | IValueRefConverter |
Description
Determines whether a converter is available, given a From/To TypeInfo pair.
The CanConvert method determines whether a converter is available, given a From/To TypeInfo pair.
Call CanConvert with the following parameters:
Parameter | Meaning |
FromType
|
From PTypeInfo of potential converter. |
ToType
|
To PTypeInfo of potential converter. |
CanConvert returns True if the converter from types or to types is available, False otherwise.