GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureOCR Class / GetBlockSpecialFormat Method
The unique result identifier of the executed OCR process obtained by the GdPictureOCR.RunOCR method.
The 0-based index of the block within the specified OCR result. It must be a value between 0 and GdPictureOCR.GetBlockCount(OCRResultID) - 1.





In This Topic
GetBlockSpecialFormat Method (GdPictureOCR)
In This Topic
Returns the special format of the specified block within a specified OCR result.
Syntax
'Declaration
 
Public Function GetBlockSpecialFormat( _
   ByVal OCRResultID As String, _
   ByVal BlockIdx As Integer _
) As OCRBlockSpecialFormat
public OCRBlockSpecialFormat GetBlockSpecialFormat( 
   string OCRResultID,
   int BlockIdx
)
public function GetBlockSpecialFormat( 
    OCRResultID: String;
    BlockIdx: Integer
): OCRBlockSpecialFormat; 
public function GetBlockSpecialFormat( 
   OCRResultID : String,
   BlockIdx : int
) : OCRBlockSpecialFormat;
public: OCRBlockSpecialFormat GetBlockSpecialFormat( 
   string* OCRResultID,
   int BlockIdx
) 
public:
OCRBlockSpecialFormat GetBlockSpecialFormat( 
   String^ OCRResultID,
   int BlockIdx
) 

Parameters

OCRResultID
The unique result identifier of the executed OCR process obtained by the GdPictureOCR.RunOCR method.
BlockIdx
The 0-based index of the block within the specified OCR result. It must be a value between 0 and GdPictureOCR.GetBlockCount(OCRResultID) - 1.

Return Value

The special format of the specified block. A member of the OCRBlockSpecialFormat enumeration.

Please always use the GdPictureOCR.GetStat method to determine if this method has been successful.

Remarks
It is recommend to use the GdPictureOCR.GetStat method to identify the specific reason for the method's failure, if any.
See Also