GetBlockName

Blocks, Interaction

Description

Returns the name of a template block, which is the first segment of its contents string

Syntax

Delphi

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

ActiveX

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

DLL

const wchar_t* DLGetBlockName(int InstanceID, int Page, int BlockIndex);
const char* DLGetBlockNameA(int InstanceID, int Page, int BlockIndex);

Parameters

PagePage number
BlockIndex1-based block index on that page

Return values

Block name, or an empty string when the index is out of range

See also

GetBlockType, GetBlockRect, GetBlockProperty, AddBlock