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 LongDLL
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
| BlockType | text, image ou pdf, casamento sem diferenciar maiúsculas |
|---|---|
| BlockName | Nome de block não vazio |
| Left, Top, Width, Height | Retângulo em coordenadas de facade com base no topo |
| Properties | Lista 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