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 清單,儲存在註解內容中 |
傳回值
| 成功為 1,引數無效時為 0 |
備註
區塊註解本身不帶外觀,檢視器不會渲染這些佔位