GetBlockProperty

ブロック、インタラクション

説明

テンプレートブロックの contents key=value リストからカスタムプロパティを 1 つ返します

構文

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ページ番号
BlockIndex1 起算のブロックインデックス
Keyプロパティのキー。大文字小文字を区別せず一致させます

戻り値

プロパティ値をそのまま返します。キーがなければ空文字列

関連項目

GetBlockName, GetBlockType, GetBlockRect, AddBlock