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(name: String; caption: String)

 

MenuItem(String name, String caption)

 

Sub New(name As String, caption As String)

Parameters:

  • name:
  • caption:

 

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:

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.

 

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(name: String; caption: String)

 

MenuItem(String name, String caption)

 

Sub New(name As String, caption As String)

Parameters:

  • name:
  • caption:

 

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:

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()