Foxit PDF SDK
FSDK.MenuItemConfig Class Reference

Public Member Functions

 constructor ()
 Constructor.
 
 constructor (name, user, parent, pos, pos_str, exec, enable, marked)
 Constructor, with parameters. More...
 
 Set (name, user, parent, pos, pos_str, exec, enable, marked)
 Set values. More...
 

Public Attributes

 enable
 (Only used by An expression string that is evaluated to determine whether to enable the menu item.
 
 exec
 (Only used by An expression string to evaluate when the menu item is selected by the user.
 
 marked
 (Only used by An expression string that determines whether the menu item has a check mark next to it. The expression should set event.rc to false to uncheck the menu item and true to check it. The default is that the menu item is not marked.
 
 name
 The language-independent name of the menu item.
 
 parent
 The name of the parent menu item. Its submenu will have the new menu item added to it.
 
 pos
 The position within the submenu to locate the new menu item.
 
 pos_str
 (Only used by The string is a named item in the menu (a language-independent name of a menu item).
 
 user
 The user string (language-dependent name) to display as the menu item name.
 

Detailed Description

This class represents menu item config.

Member Function Documentation

◆ constructor()

FSDK.MenuItemConfig.constructor ( name  ,
user  ,
parent  ,
pos  ,
pos_str  ,
exec  ,
enable  ,
marked   
)

Constructor, with parameters.

Parameters
[in]nameThe language-independent name of the menu item.
[in]userThe user string (language-dependent name) to display as the menu item name.
[in]parentThe name of the parent menu item. Its submenu will have the new menu item added to it.
[in]posThe position within the submenu to locate the new menu item.
[in]pos_strThe string is a named item in the menu (a language-independent name of a menu item).
[in]execAn expression string to evaluate when the menu item is selected by the user.
[in]enableAn expression string that is evaluated to determine whether to enable the menu item.
[in]markedAn expression string that determines whether the menu item has a check mark next to it.

◆ Set()

FSDK.MenuItemConfig.Set ( name  ,
user  ,
parent  ,
pos  ,
pos_str  ,
exec  ,
enable  ,
marked   
)

Set values.

Parameters
[in]nameThe language-independent name of the menu item.
[in]userThe user string (language-dependent name) to display as the menu item name.
[in]parentThe name of the parent menu item. Its submenu will have the new menu item added to it.
[in]posThe position within the submenu to locate the new menu item.
[in]pos_strThe string is a named item in the menu (a language-independent name of a menu item).
[in]execAn expression string to evaluate when the menu item is selected by the user.
[in]enableAn expression string that is evaluated to determine whether to enable the menu item.
[in]markedAn expression string that determines whether the menu item has a check mark next to it.
Returns
None.