AddBlockA
Blocks, Interaction
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AddBlock and string arguments are interpreted using the current SetAnsiMode code page
Authors a template block annotation on the current page for later personalization
Syntax
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);
Parameters
| BlockType | text, image or pdf, matched case-insensitively |
|---|---|
| BlockName | Non-empty block name |
| Left, Top, Width, Height | Rectangle in top-based facade coordinates |
| Properties | Optional key=value;key=value list stored in the annotation contents |
Return values
| 1 on success, 0 on invalid arguments |
Remarks
Block annotations carry no appearance of their own, so viewers do not render the placeholders