GetBlockPropertyA

块、交互

描述

末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 GetBlockProperty 相同,字符串参数按当前 SetAnsiMode 代码页解释

从模板块 contents 的 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