System.Bindings.Outputs.TValueRefConverter.CanConvert
Delphi
function CanConvert(AFrom, ATo: PTypeInfo): Boolean;
C++
bool __fastcall CanConvert(System::Typinfo::PTypeInfo AFrom, System::Typinfo::PTypeInfo ATo);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bindings.Outputs.pas System.Bindings.Outputs.hpp |
System.Bindings.Outputs | TValueRefConverter |
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 or to types is available, False otherwise.