InitializeGrid Method of the TableBlock Object
This method initializes table grid for the table block.
HRESULT InitializeGrid( IIntsCollection* HorzSeparators, IIntsCollection* VertSeparators );
void InitializeGrid( IIntsCollection HorzSeparators, IIntsCollection VertSeparators );
Visual Basic .NET
Sub InitializeGrid( _ HorzSeparators As IIntsCollection, _ VertSeparators As IIntsCollection _ )
- [in] This variable refers to the IntsCollection object that contains coordinates of internal horizontal separators for the table block.
- [in] This variable refers to the IntsCollection object that contains coordinates of internal vertical separators for the table block.
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
Table separators are initialized anew by a call to this method. Old table structure is destroyed. All coordinates of table separators must lay between the coordinates of the table borders; otherwise, an error code is returned. Note that only coordinates of internal separators should be passed in IntsCollection objects, that is they should not include coordinates of table borders, although table borders are always present in collections of table separators of the table block itself. All new table cells that appear as the result of a call to this method are initialized with the attributes (for example, recognition parameters) of the cell that was in a left top corner of the previous table structure.