GetBlockType

块、交互

描述

返回模板块的类型

语法

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

参数

Page包含该块的页码,从 1 开始;查找后会恢复先前选定的页面
BlockIndex该页面上块的索引,从 1 开始

返回值

text、image 或 pdf;索引越界时返回空字符串

另请参阅

GetBlockName, GetBlockRect, GetBlockProperty, AddBlock