GetBlockProperty

Blocks, Interação

Descrição

Retorna uma propriedade customizada de um block de template a partir da lista key=value de contents dele

Sintaxe

Delphi

Function GetBlockProperty(Page, BlockIndex: Integer; Const Key: WideString): WideString;

ActiveX

Function PDFlib::GetBlockProperty(Page As Long, BlockIndex As Long, Key As String) As String

DLL

const wchar_t* DLGetBlockProperty(int InstanceID, int Page, int BlockIndex, const wchar_t* Key);
const char* DLGetBlockPropertyA(int InstanceID, int Page, int BlockIndex, const char* Key);

Parâmetros

PageNúmero da página
BlockIndexÍndice do block com base 1
KeyChave da propriedade; casamento sem diferenciar maiúsculas

Valores retornados

Valor da propriedade na íntegra, ou string vazia quando a chave não existe

Veja também

GetBlockName, GetBlockType, GetBlockRect, AddBlock