GetBlockPropertyA

區塊、互動

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 GetBlockProperty 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

從範本區塊內容的 key=value 清單傳回自訂屬性

語法

Delphi

Function DLGetBlockPropertyA(InstanceID, Page, BlockIndex: Integer; Key: PAnsiChar): PAnsiChar;

DLL

const char* DLGetBlockPropertyA(int InstanceID, int Page, int BlockIndex, const char* Key);

參數

Page頁碼
BlockIndex以 1 為基準的區塊索引
Key屬性鍵;比對不分大小寫

傳回值

屬性值原樣傳回,鍵不存在時為空字串

另請參閱

GetBlockName, GetBlockType, GetBlockRect, AddBlock