Declaration
function GetInteger(const key: WideString; recursive: Boolean = True): Integer; overload;
function GetInteger(const key: WideString; const Def: Integer; recursive: Boolean = True): Integer; overload;
Description
Returns the integer value to which the key is mapped in this dictionary. If the key doesn't exist an exception is raised.
| Parameter | Description |
| key | A key in this dictionary |
| recursive | If True then it will also search for this key in sub-dictionaries |
Note: Use '#text' as the key to get the values from a tag list, e.g. Memo1.Lines.Add( dict.GetString( '#text', False ));
Examples
// Return the Photoshop Color Mode from the XMP metadata
iColorMode := ImageEnView1.IO.Params.Dict.GetDictionary( 'XMP' ).GetInteger( 'photoshop:ColorMode' );