InsertAt Method of the PopupMenu Object
This method inserts the specified command into the specified position in the custom part of the context menu.
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 custom part of the context menu as a MenuItemEnum constant. See the list of available elements:
- Image Viewer commands
Zoom Viewer commands
Document Viewer commands
Text Editor commands - Index
- [in] Specifies the position of the element in the custom part of the context menu. Must be in a range from 0 to the value of the IPopupMenu::Count property. This variable can be set to -1. In this case, the element will be inserted at the end of the custom part of the context menu.
Return values
This method has no specific return values. It returns the standard return values of the ABBYY FineReader Engine functions.
See also
17.09.2024 15:14:40