AddBlock

區塊、互動

描述

在目前頁面上撰寫範本區塊註解,供之後個人化使用

語法

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);

參數

BlockTypetext、image 或 pdf,比對不分大小寫
BlockName非空的區塊名稱
Left, Top, Width, Height頂部基準外觀座標系中的矩形
Properties選配的 key=value;key=value 清單,儲存在註解內容中

傳回值

成功為 1,引數無效時為 0

備註

區塊註解本身不帶外觀,檢視器不會渲染這些佔位

另請參閱

GetBlockCount, GetBlockName, GetBlockType, FillTextBlock