DAGetTextBlockBound

文字、擷取、直接存取功能

描述

傳回指定文字區塊的某個邊界值

語法

Delphi

Function TPDFlib.DAGetTextBlockBound(TextBlockListID, Index, BoundIndex: Integer): Double;

ActiveX

Function PDFlib::DAGetTextBlockBound(TextBlockListID As Long, Index As Long, BoundIndex As Long) As Double

DLL

double DLDAGetTextBlockBound(int InstanceID, int TextBlockListID, int Index, int BoundIndex);

參數

TextBlockListID由 DAExtractPageTextBlocks 或 ExtractFilePageTextBlocks 函式傳回的值
Index文字區塊的索引。清單中的第一個文字區塊索引為 1。
BoundIndex1 = 左下角水平座標 2 = 左下角垂直座標 3 = 右下角水平座標 4 = 右下角垂直座標 5 = 右上角水平座標 6 = 右上角垂直座標 7 = 左上角水平座標 8 = 左上角垂直座標

傳回值

以點為單位傳回文字區塊的要求邊界。文字區塊清單 ID 無效時傳回 0。