InsertAt Method of the PopupMenu Object

This method inserts the specified command into the specified position in the custom part of the context menu.



  MenuItemEnum CommandId,
  int          Index


void InsertAt(
  MenuItemEnum CommandId,
  int          Index

Visual Basic .NET

Sub InsertAt( _
  CommandId As MenuItemEnum, _
  Index As Integer


[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
[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



24.03.2023 8:51:52

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.