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注釈の contents に保存される、省略可能な key=value;key=value リスト

戻り値

成功時は 1、引数が無効の場合は 0

備考

ブロック注釈は独自の外観を持たないため、ビューアはプレースホルダーを描画しません

関連項目

GetBlockCount, GetBlockName, GetBlockType, FillTextBlock