MenuItem

Overview

Represents an item that can be displayed in the MenuBar or Toolbar.

Location


 

Creates a new instance of the class.

 

constructor

 

MenuItem()

 

Sub New()

 

constructor(aName: String; aCaption: String)

 

MenuItem(String aName, String aCaption)

 

Sub New(aName As String, aCaption As String)

Parameters:

  • aName:
  • aCaption:

 

constructor(aName: String; aCaption: String; aImageIndex: Int32)

 

MenuItem(String aName, String aCaption, Int32 aImageIndex)

 

Sub New(aName As String, aCaption As String, aImageIndex As Int32)

Parameters:

  • aName:
  • aCaption:
  • aImageIndex:

Creates a new instance of the class with given parameters.

 

constructor(aName: String; aCaption: String; aImageIndex: Int32; aAction: Action)

 

MenuItem(String aName, String aCaption, Int32 aImageIndex, Action aAction)

 

Sub New(aName As String, aCaption As String, aImageIndex As Int32, aAction As Action)

Parameters:

  • aName: Name of the item.
  • aCaption: Displayed text of the item.
  • aImageIndex: Index of the associated image.
  • aAction: Action associated with the item.

Action

Gets or sets the action that is associated with this menu item.

 

property Action: Action read write;

 

Action Action { get; set; }

 

Property Action() As Action

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.

 

property Parent: MenuItem read write;

 

MenuItem Parent { get; set; }

 

Property Parent() As MenuItem

 

Action

Gets or sets the action that is associated with this menu item.

 

property Action: Action read write;

 

Action Action { get; set; }

 

Property Action() As Action

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.

 

property Parent: MenuItem read write;

 

MenuItem Parent { get; set; }

 

Property Parent() As MenuItem

 

Creates a new instance of the class.

 

constructor

 

MenuItem()

 

Sub New()

 

constructor(aName: String; aCaption: String)

 

MenuItem(String aName, String aCaption)

 

Sub New(aName As String, aCaption As String)

Parameters:

  • aName:
  • aCaption:

 

constructor(aName: String; aCaption: String; aImageIndex: Int32)

 

MenuItem(String aName, String aCaption, Int32 aImageIndex)

 

Sub New(aName As String, aCaption As String, aImageIndex As Int32)

Parameters:

  • aName:
  • aCaption:
  • aImageIndex:

Creates a new instance of the class with given parameters.

 

constructor(aName: String; aCaption: String; aImageIndex: Int32; aAction: Action)

 

MenuItem(String aName, String aCaption, Int32 aImageIndex, Action aAction)

 

Sub New(aName As String, aCaption As String, aImageIndex As Int32, aAction As Action)

Parameters:

  • aName: Name of the item.
  • aCaption: Displayed text of the item.
  • aImageIndex: Index of the associated image.
  • aAction: 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()