InsertAt Method of the Toolbar Object
This method inserts a button or separator into the specified position in the toolbar.
Syntax
C++
HRESULT InsertAt(
MenuItemEnum CommandId,
int Index
);
C#
void InsertAt( MenuItemEnum CommandId, int Index );
Visual Basic .NET
Sub InsertAt( _ CommandId As MenuItemEnum, _ Index As Integer )
Parameters
- CommandId
- [in] Specifies the element to be added to the toolbar as a MenuItemEnum constant. See the list of available elements:
- Image Viewer commands
Text Editor commands - Index
- [in] Specifies the position of the element in the toolbar. Must be in a range from 0 to the value of the IToolbar::Count property. This variable can be set to -1. In this case, the element will be inserted at the end of the toolbar.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
Remarks
Before inserting a command, make sure that it is not already on the toolbar.
See also
9/17/2024 3:14:40 PM