GetBlockRect
區塊、互動
描述
以頂部基準外觀座標傳回範本區塊的放置矩形
語法
Delphi
Function GetBlockRect(Page, BlockIndex: Integer; Out Left, Top, Width, Height: Double): Integer;ActiveX
Function PDFlib::GetBlockRect(Page As Long, BlockIndex As Long, ByRef Left As Double, ByRef Top As Double, ByRef Width As Double, ByRef Height As Double) As LongDLL
int DLGetBlockRect(int InstanceID, int Page, int BlockIndex, double Var Left, double Top, double Width, double Height);參數
| Page | 含有該區塊的頁碼(1 起算);查詢後會還原原先選取的頁面 |
|---|---|
| BlockIndex | 該頁面上區塊的索引(1 起算) |
| Left | 接收以頂端為基準的外觀座標中的左緣 |
| Top | 接收以頂端為基準的外觀座標中的上緣,即頁面高度減去 PDF 空間的右上角 Y |
| Width | 接收矩形寬度 |
| Height | 接收矩形高度 |
傳回值
| 成功為 1 並填入 Left、Top、Width 與 Height,索引超出範圍時為 0 |