AddNew Method of the BlockDefinitions Object

This method adds a block definition at the end of the collection.

Syntax

Visual Basic .NET

Function AddNew( _
  Type As BlockTypeEnum, _
  Region As Region, _
  Name As String _
) As BlockDefinition
    

C++

HRESULT AddNew(
  BlockTypeEnum      Type,
  IRegion*           Region,
  BSTR               Name,
  IBlockDefinition** Result
);
    

Parameters

Type
[in] This variable of the BlockTypeEnum type specifies the type of the block.

Note: The Type parameter can not be BT_Unknown or BT_Page.

Region
[in] This variable refers to the Region object that contains the region of the block. Region must not be NULL.
Name
[in] This variable specifies the name of the block.
Result
[out, retval] A pointer to the IBlockDefinition* variable that receives the interface pointer for the added Document Definition block.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also

BlockDefinitions

15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.