MenuItem
Overview
Represents an item that can be displayed in the MenuBar or Toolbar.
Location
- Reference: RemObjects.Hydra.dll
- Namespace: RemObjects.Hydra.Actions
constructor
Creates a new instance of the class.
constructor
MenuItem()
Sub New()
constructor (String, String)
constructor(name: String; caption: String)
MenuItem(String name, String caption)
Sub New(name As String, caption As String)
Parameters:
- name:
- caption:
constructor (String, String, Int32)
constructor(name: String; caption: String; imageIndex: Int32)
MenuItem(String name, String caption, Int32 imageIndex)
Sub New(name As String, caption As String, imageIndex As Int32)
Parameters:
- name:
- caption:
- imageIndex:
constructor (String, String, Int32, Action)
Creates a new instance of the class with given parameters.
constructor(name: String; caption: String; imageIndex: Int32; action: Action)
MenuItem(String name, String caption, Int32 imageIndex, Action action)
Sub New(name As String, caption As String, imageIndex As Int32, action As Action)
Parameters:
- name: Name of the item.
- caption: Displayed text of the item.
- imageIndex: Index of the associated image.
- action: Action associated with the item.
Action
Gets or sets the action that is associated with this menu item.
Assign
Assigns all the properties of the specified MenuItem object to the current MenuItem.
method Assign(Src: Object)
void Assign(Object Src)
Sub Assign(Src As Object)
Parameters:
- Src: Source object.
Caption
Gets or sets the caption of the menu item.
property Caption: String read write;
String Caption { get; set; }
Property Caption() As String
ImageIndex
Gets or sets the index of the image that is associated with this menu item.
property ImageIndex: Int32 read write;
Int32 ImageIndex { get; set; }
Property ImageIndex() As Int32
Initialize protected
This method is called when item is initialized.
method Initialize
void Initialize()
Sub Initialize()
Name
Gets or sets the name of the menu item.
property Name: String read write;
String Name { get; set; }
Property Name() As String
OwnerList
Gets or sets the OwnerList of the parent MenuItem.
property OwnerList: ToolbarList read write;
ToolbarList OwnerList { get; set; }
Property OwnerList() As ToolbarList
Parent
Gets the parent MenuItem object to the current MenuItem.
Action
Gets or sets the action that is associated with this menu item.
Caption
Gets or sets the caption of the menu item.
property Caption: String read write;
String Caption { get; set; }
Property Caption() As String
ImageIndex
Gets or sets the index of the image that is associated with this menu item.
property ImageIndex: Int32 read write;
Int32 ImageIndex { get; set; }
Property ImageIndex() As Int32
Name
Gets or sets the name of the menu item.
property Name: String read write;
String Name { get; set; }
Property Name() As String
OwnerList
Gets or sets the OwnerList of the parent MenuItem.
property OwnerList: ToolbarList read write;
ToolbarList OwnerList { get; set; }
Property OwnerList() As ToolbarList
Parent
Gets the parent MenuItem object to the current MenuItem.
constructor
Creates a new instance of the class.
constructor
MenuItem()
Sub New()
constructor (String, String)
constructor(name: String; caption: String)
MenuItem(String name, String caption)
Sub New(name As String, caption As String)
Parameters:
- name:
- caption:
constructor (String, String, Int32)
constructor(name: String; caption: String; imageIndex: Int32)
MenuItem(String name, String caption, Int32 imageIndex)
Sub New(name As String, caption As String, imageIndex As Int32)
Parameters:
- name:
- caption:
- imageIndex:
constructor (String, String, Int32, Action)
Creates a new instance of the class with given parameters.
constructor(name: String; caption: String; imageIndex: Int32; action: Action)
MenuItem(String name, String caption, Int32 imageIndex, Action action)
Sub New(name As String, caption As String, imageIndex As Int32, action As Action)
Parameters:
- name: Name of the item.
- caption: Displayed text of the item.
- imageIndex: Index of the associated image.
- action: Action associated with the item.
Assign
Assigns all the properties of the specified MenuItem object to the current MenuItem.
method Assign(Src: Object)
void Assign(Object Src)
Sub Assign(Src As Object)
Parameters:
- Src: Source object.
Initialize protected
This method is called when item is initialized.
method Initialize
void Initialize()
Sub Initialize()