Search Results for

    Show / Hide Table of Contents

    Class MenuItem

    Inheritance
    object
    BaseEntity
    MenuItem
    Implements
    IMenuItem
    IBaseEntity
    IEquatable<IBaseEntity>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<IMenuItem>
    Inherited Members
    BaseEntity.HISTORY_ENDROWUPDATE_COLNAME
    BaseEntity.HasTrackedPropertyChanged(string)
    BaseEntity.OriginalTrackedPropertyValue(string)
    BaseEntity.OriginalTrackedPropertyValue<T>(string)
    BaseEntity.ClearTrackedOriginalValues()
    BaseEntity.GetAllOriginalTrackedPropertyValues()
    BaseEntity.GetLabel(string)
    BaseEntity.SetLabel(string, string)
    BaseEntity.SetSilentLabel(string, string)
    BaseEntity.ResetChangedTrackedPropertiesToOriginalValues()
    BaseEntity.AddTrackedOriginalValue(string, object)
    BaseEntity.SnapshotProperties()
    BaseEntity.RestoreFromSnapshot(Dictionary<string, object>)
    BaseEntity.IsBasePropertyName(string)
    BaseEntity.IsBaseRelationshipID(string)
    BaseEntity.OnPropertyChanging(string)
    BaseEntity.OnPropertyChanged(string)
    BaseEntity.Equals(IBaseEntity)
    BaseEntity.GetHashCode()
    BaseEntity.Equals(object)
    BaseEntity.Clone(object)
    BaseEntity.CopyFromSource(object)
    BaseEntity.TrackChanges
    BaseEntity.ModifiedByUserID_Label
    BaseEntity.ModifiedByUserID_Label_Silent
    BaseEntity.CanvasID_Label
    BaseEntity.CanvasID_Label_Silent
    BaseEntity.AlgorithmStepID_Label
    BaseEntity.AlgorithmStepID_Label_Silent
    BaseEntity.SafeID_Label
    BaseEntity.SafeID_Label_Silent
    BaseEntity.AccountID
    BaseEntity.ID
    BaseEntity.LastUpdated
    BaseEntity.ModifiedByUserID
    BaseEntity.CanvasID
    BaseEntity.AlgorithmStepID
    BaseEntity.SafeID
    BaseEntity.PropertyChanged
    BaseEntity.PropertyChanging
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Entities.Design
    Assembly: LemonEdge.API.Entities.Auto.dll
    Syntax
    [DataContract]
    public class MenuItem : BaseEntity, IMenuItem, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<IMenuItem>

    Constructors

    MenuItem()

    Declaration
    public MenuItem()

    Properties

    ActivateOnLoad

    Indicates this command is activated when the system is loaded

    Declaration
    public bool ActivateOnLoad { get; set; }
    Property Value
    Type Description
    bool

    ActiveOnAllMenus

    Indicates this command should appear on all menus created for this role.

    This is often used to provide consistent access to common commands such as Save from everywhere.

    Declaration
    public bool ActiveOnAllMenus { get; set; }
    Property Value
    Type Description
    bool

    AddToMenuBar

    This indicates the command should also appear in the menu bar at the top right near the user menu.

    If you also mark this command as invisible then it will only appear in the menu bar, and not on the main menu itself.

    Declaration
    public bool AddToMenuBar { get; set; }
    Property Value
    Type Description
    bool

    AddToQuickAccess

    This indicates the command should also appear in the quick access at the top left of the app.

    If you also mark this command as invisible then it will only appear in the quick access, and not on the main menu itself.

    Declaration
    public bool AddToQuickAccess { get; set; }
    Property Value
    Type Description
    bool

    AddToSimplifiedMenu

    By default the menu shows all commands. However if you start selecting commands as being part of a simplified set, then by default the menu will show the simplified set only. When you toggle the simplified menu you can then see all the other commands as well.

    Declaration
    public bool AddToSimplifiedMenu { get; set; }
    Property Value
    Type Description
    bool

    AddToUserMenuBar

    This indicates the command should also appear in the user menu at the top right.

    If you also mark this command as invisible then it will only appear in the user menu, and not on the main menu itself.

    Declaration
    public bool AddToUserMenuBar { get; set; }
    Property Value
    Type Description
    bool

    GroupHelpURL

    A custom url for help on this group

    Declaration
    [StringLength(500)]
    public string GroupHelpURL { get; set; }
    Property Value
    Type Description
    string

    GroupIndex

    Holds the position of this group within the menu

    Declaration
    public short GroupIndex { get; set; }
    Property Value
    Type Description
    short

    GroupName

    The user friendly name of the group this command resides within.

    Declaration
    [StringLength(500)]
    public string GroupName { get; set; }
    Property Value
    Type Description
    string

    ItemDescription

    The user friendly description for this item command

    Declaration
    public string ItemDescription { get; set; }
    Property Value
    Type Description
    string

    ItemHelpURL

    A custom url for help on this command

    Declaration
    [StringLength(500)]
    public string ItemHelpURL { get; set; }
    Property Value
    Type Description
    string

    ItemID

    The actual command you want this menu item to invoke. See our list of all standard commands ( https://help.lemonedge.com/all-commands/).

    Declaration
    public Guid ItemID { get; set; }
    Property Value
    Type Description
    Guid

    ItemIconID

    The system or ICustomImage icon to use for this command on the menu

    Declaration
    public Guid ItemIconID { get; set; }
    Property Value
    Type Description
    Guid

    ItemIndex

    Holds the position of this command within the group

    Declaration
    public short ItemIndex { get; set; }
    Property Value
    Type Description
    short

    ItemName

    The user friendly name of this command

    Declaration
    [Required]
    [StringLength(500)]
    public string ItemName { get; set; }
    Property Value
    Type Description
    string

    ItemParam

    Any custom parameters for configuring this command ItemID

    Declaration
    public string ItemParam { get; set; }
    Property Value
    Type Description
    string

    ItemTooltip

    The user friendly description for this item command which will only be shown as a tooltip

    Declaration
    [StringLength(1000)]
    public string ItemTooltip { get; set; }
    Property Value
    Type Description
    string

    MenuIndex

    Holds the position of this menu in the root menus

    Declaration
    public short MenuIndex { get; set; }
    Property Value
    Type Description
    short

    MenuName

    The user friendly name of this root menu

    Declaration
    [StringLength(500)]
    public string MenuName { get; set; }
    Property Value
    Type Description
    string

    RoleID

    [Key] Links to IRole. The parent role this menu item belongs to

    Declaration
    public Guid RoleID { get; set; }
    Property Value
    Type Description
    Guid

    RoleID_Label

    Declaration
    public string RoleID_Label { get; set; }
    Property Value
    Type Description
    string

    RoleID_Label_Silent

    Declaration
    [NotMapped]
    public string RoleID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    Visible

    Indicates if this command should be visible on the main menu.

    This is usually used to hide the command from the main menu and make it visible in the user menu, or quick access, only.

    Declaration
    public bool Visible { get; set; }
    Property Value
    Type Description
    bool

    Methods

    CopyFromEntity(IBaseEntity)

    Declaration
    protected override void CopyFromEntity(IBaseEntity src)
    Parameters
    Type Name Description
    IBaseEntity src
    Overrides
    BaseEntity.CopyFromEntity(IBaseEntity)

    CopyFromSource(IMenuItem)

    Updates all properties in this item to have the same properties as the source object.

    Declaration
    public void CopyFromSource(IMenuItem source)
    Parameters
    Type Name Description
    IMenuItem source

    The source object to copy all values from.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    IMenuItem
    IBaseEntity
    IEquatable<T>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<T>

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.