GetBlockProperty

Blocks, Interaction

Description

Returns a custom property of a template block from its contents key=value list

Syntax

Delphi

Function GetBlockProperty(Page, BlockIndex: Integer; Const Key: WideString): WideString;

ActiveX

Function PDFlib::GetBlockProperty(Page As Long, BlockIndex As Long, Key As String) As String

DLL

const wchar_t* DLGetBlockProperty(int InstanceID, int Page, int BlockIndex, const wchar_t* Key);
const char* DLGetBlockPropertyA(int InstanceID, int Page, int BlockIndex, const char* Key);

Parameters

PagePage number
BlockIndex1-based block index
KeyProperty key; matched case-insensitively

Return values

Property value verbatim, or an empty string when the key is absent

See also

GetBlockName, GetBlockType, GetBlockRect, AddBlock