GetBlockName

块、交互

描述

返回模板块名称,即其 contents 字符串的第一段

语法

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);

参数

Page页码
BlockIndex该页面上从 1 开始的块索引

返回值

块名称;索引越界时返回空字符串

另请参阅

GetBlockType, GetBlockRect, GetBlockProperty, AddBlock