Chinese Simplified (简体中文)

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

PopupMenu

Delete

9/17/2024 3:14:41 PM

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.