AddBlock

Blocks, Interação

Descrição

Cria uma anotação de block de template na página atual para personalização posterior

Sintaxe

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

Parâmetros

BlockTypetext, image ou pdf, casamento sem diferenciar maiúsculas
BlockNameNome de block não vazio
Left, Top, Width, HeightRetângulo em coordenadas de facade com base no topo
PropertiesLista opcional key=value;key=value gravada no contents da anotação

Valores retornados

1 em caso de sucesso, 0 para argumentos inválidos

Observações

Anotações de block não têm aparência própria, então os viewers não renderizam os placeholders

Veja também

GetBlockCount, GetBlockName, GetBlockType, FillTextBlock