GetBlockProperty

Блоки, взаимодействие

Описание

Возвращает пользовательское свойство шаблонного блока из его списка key=value в содержимом

Синтаксис

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

Параметры

PageНомер страницы
BlockIndexИндекс блока, начиная с единицы
KeyКлюч свойства; сопоставляется без учёта регистра

Возвращаемые значения

Значение свойства дословно или пустая строка, когда ключ отсутствует

См. также

GetBlockName, GetBlockType, GetBlockRect, AddBlock