AddBlock

Blokken, interactie

Beschrijving

Zet een template block-annotatie op de huidige pagina voor latere persoonlijke invulling

Syntaxis

Delphi

Function AddBlock(Const BlockType, BlockName: WideString;
  Left, Top, Width, Height: Double; Const Properties: WideString): Integer;

ActiveX

Function PDFlib::AddBlock(BlockType As String, BlockName As String, Left As Double, Top As Double, Width As Double, Height As Double, Properties As String) As Long

DLL

int DLAddBlock(int InstanceID, const wchar_t* BlockType, const wchar_t* BlockName, double Left, double Top, double Width, double Height, const wchar_t* Properties);
int DLAddBlockA(int InstanceID, const char* BlockType, const char* BlockName, double Left, double Top, double Width, double Height, const char* Properties);

Parameters

BlockTypetext, image of pdf, matcht case-insensitief
BlockNameNiet-lege blocknaam
Left, Top, Width, HeightRectangle in top-based facade-coördinaten
PropertiesOptionele key=value;key=value-lijst die in de annotation contents wordt opgeslagen

Retourwaarden

1 bij succes, 0 bij ongeldige argumenten

Opmerkingen

Block-annotaties dragen geen eigen appearance, dus viewers renderen de placeholders niet

Zie ook

GetBlockCount, GetBlockName, GetBlockType, FillTextBlock