AddNew Method of the SeparatorGroup Object
This method creates a separator block and inserts it into the specified position in the group.
Syntax
HRESULT AddNew(
int Position,
IRegion* BlockRegion,
ISeparatorBlock** Result
);
Parameters
- Position
- [in] This parameter specifies the index of the newly inserted block in the separator group. The value of the parameter must be in range from 0 to the value of the ISeparatorGroup::Count property. If the block with this index already exists in the group, the elements of the collection are shifted to the right. The element may also be inserted at the end of collection, in which case the value of this parameter must be equal to the value of the ISeparatorGroup::Count property.
- BlockRegion
- [in] This variable refers to the Region object that specifies the region of the newly created separator block. This parameter may be 0, in which case the region of the new block will be set to the region of the separator group.
- Result
- [out, retval] A pointer to ISeparatorBlock* pointer variable that receives the interface pointer of the new separator block.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
See also
03.07.2024 8:50:25