This is a Library topic for Hydra for .NET
This page is generated from external data, please do not update
Namespaces — Interfaces — Classes — Enums — Implements
Overview
Represents an item that can be displayed in the MenuBar or Toolbar.
Location
MenuItem | Descendants
Properties
| Action
|
|
Gets or sets the action that is associated with this menu item.
Prism: property Action: Action read write
C#: Action Action { get; set; }
VB: Property Action As Action
|
| Caption
|
|
Gets or sets the caption of the menu item.
Prism: property Caption: String read write
C#: String Caption { get; set; }
VB: Property Caption As String
|
| ImageIndex
|
|
Gets or sets the index of the image that is associated with this menu item.
Prism: property ImageIndex: Int32 read write
C#: Int32 ImageIndex { get; set; }
VB: Property ImageIndex As Int32
|
| Name
|
|
Gets or sets the name of the menu item.
Prism: property Name: String read write
C#: String Name { get; set; }
VB: Property Name As String
|
| OwnerList
|
|
Gets or sets the OwnerList of the parent MenuItem.
Prism: property OwnerList: ToolbarList read write
C#: ToolbarList OwnerList { get; set; }
VB: Property OwnerList As ToolbarList
|
| Parent
|
|
Gets the parent MenuItem object to the current MenuItem.
Prism: property Parent: MenuItem read write
C#: MenuItem Parent { get; set; }
VB: Property Parent As MenuItem
|
Instance Methods
| constructor ()
|
|
Creates a new instance of the class.
Oxygene: constructor
C#: constructor()
VB: Sub New
|
| constructor (String, String)
|
|
Creates a new instance of the class with given parameters.
Oxygene: constructor(aName: String; aCaption: String)
C#: constructor(String aName, String aCaption)
VB: Sub New (aName As String, aCaption As String)
Parameters:
- aName: Name of the item.
- aCaption: Displayed text of the item.
|
| constructor (String, String, Int32)
|
|
Creates a new instance of the class with given parameters.
Oxygene: constructor(aName: String; aCaption: String; aImageIndex: Int32)
C#: constructor(String aName, String aCaption, Int32 aImageIndex)
VB: Sub New (aName As String, aCaption As String, aImageIndex As Int32)
Parameters:
- aName: Name of the item.
- aCaption: Displayed text of the item.
- aImageIndex: Index of the associated image.
|
| constructor (String, String, Int32, Action)
|
|
Creates a new instance of the class with given parameters.
Oxygene: constructor(aName: String; aCaption: String; aImageIndex: Int32; aAction: Action)
C#: constructor(String aName, String aCaption, Int32 aImageIndex, Action aAction)
VB: 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.
Oxygene: method Assign(Src: Object)
C#: void Assign(Object Src)
VB: Sub Assign(Src As Object)
Parameters:
|
| Initialize protected
|
|
This method is called when item is initialized.
Oxygene: method Initialize
C#: void Initialize()
VB: Sub Initialize
|
Descendants
See Also
Glossary — Architecture — Articles — Library — Samples