GetBlockProperty

块、交互

描述

从模板块 contents 的 key=value 列表中返回一个自定义属性

语法

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

参数

Page页码
BlockIndex从 1 开始的块索引
Key属性键;不区分大小写

返回值

原样返回属性值;键不存在时返回空字符串

另请参阅

GetBlockName, GetBlockType, GetBlockRect, AddBlock