GetBlockType

Blocks, Interaction

Description

Returns the kind of a template block

Syntax

Delphi

Function GetBlockType(Page, BlockIndex: Integer): WideString;

ActiveX

Function PDFlib::GetBlockType(Page As Long, BlockIndex As Long) As String

DLL

const wchar_t* DLGetBlockType(int InstanceID, int Page, int BlockIndex);
const char* DLGetBlockTypeA(int InstanceID, int Page, int BlockIndex);

Parameters

PageOne-based page number holding the block; the previously selected page is restored after the lookup
BlockIndexOne-based index of the block on that page

Return values

text, image or pdf; an empty string when the index is out of range

See also

GetBlockName, GetBlockRect, GetBlockProperty, AddBlock