Class MenuItem
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class is the representation of a menu item in the Polar Studio menu.
public class MenuItem
- Inheritance
-
MenuItem
- Inherited Members
- Extension Methods
Properties
CaptionTC
The caption to show for the menu item.
public string CaptionTC { get; }
Property Value
ExplanationTC
An explanation as can be shown in a mouse-over event for the menu item.
public string ExplanationTC { get; }
Property Value
IconTC
The IconTC property is not formally used, but it can be used in scripts to create menu's with icons.
public string IconTC { get; }
Property Value
MenuItemID
The ID of the menu item, as is also used for performing an action from the browser.
public int MenuItemID { get; }
Property Value
MenuItemType
The type of menu item. Is one of: SubMenu, Table, Form, SystemForm, Script, PlainText, Custom
public string MenuItemType { get; }
Property Value
Name
The name of the menu item. Is not formally used.
public string Name { get; }
Property Value
ScriptExpression
The ScriptExpression contains the action to perform for custom menu items. It can contain a script expression to fire server-side. It can also be like 'Action;ActionParameter' to fire an action in the browser. Alternatively it can contain an expression like '@JavaScriptExpression'
public string ScriptExpression { get; }
Property Value
ShortCaptionTC
The ShortCaptionTC property is not formally used, but it can be used in scripts, for example to create shorter captions for mobile devices.
public string ShortCaptionTC { get; }
Property Value
SubItems
In case this menu item is a SubMenu, the menu items contained in this sub menu are retrieved using SubItems
public MenuItems SubItems { get; }
Property Value
SysApplicationID
The SysApplicationID that refers to the application this menu item is part of.
public int SysApplicationID { get; }
Property Value
SysFormID
In case of a menu item of type 'Form' the SysFormID sets the form that is to be opened.
public int SysFormID { get; }
Property Value
SysTableID
In case of a menu item of type 'Table' the SysTableID sets the table that is to be opened.
public int SysTableID { get; }
Property Value
SystemFormName
In case of a menu item of type 'SystemForm' the SystemFormName indicates the system form to open or the system action to perform.
public string SystemFormName { get; }
Property Value
Visible
A boolean (read/write) indicating this menu item is visible.
public bool Visible { get; set; }
Property Value
Methods
IsVisible()
This method returns True if the item is visible. For menu's False will be returned if the menu does not contain any visible element.
public bool IsVisible()
Returns
- bool
A boolean indicating the menu item is visible.