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 personalisation

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

BlockTypetext, image or pdf, matched case-insensitively
BlockNameNon-empty block name
Left, Top, Width, HeightRectangle in top-based facade coordinates
PropertiesOptional 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

See also

GetBlockCount, GetBlockName, GetBlockType, FillTextBlock