GetBlockProperty

區塊、互動

描述

從範本區塊內容的 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