AddBlockA
块、交互
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 AddBlock 相同,字符串参数按当前 SetAnsiMode 代码页解释
在当前页面创建模板块注释,供后续个性化使用
语法
Delphi
Function DLAddBlockA(InstanceID: Integer; BlockType, BlockName: PAnsiChar; Left, Top, Width, Height: Double; Properties: PAnsiChar): Integer;
DLL
int DLAddBlockA(int InstanceID, const char* BlockType, const char* BlockName, double Left, double Top, double Width, double Height, const char* Properties);
参数
| BlockType | text、image 或 pdf,不区分大小写 |
|---|---|
| BlockName | 非空的块名称 |
| Left, Top, Width, Height | 顶基准门面坐标下的矩形 |
| Properties | 可选的 key=value;key=value 列表,存放在注释 contents 中 |
返回值
| 成功返回 1,参数非法返回 0 |
备注
块注释自身不带外观,查看器不会渲染这些占位符