menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MenuItemModel - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MenuItemModel

    Interface for a class MenuItem.

    Inheritance
    System.Object
    MenuItemModel
    Namespace: Syncfusion.Blazor.DocumentEditor
    Assembly: Syncfusion.Blazor.DocumentEditor.dll
    Syntax
    public class MenuItemModel : Object

    Constructors

    MenuItemModel()

    Declaration
    public MenuItemModel()

    Properties

    IconCss

    Defines class/multiple classes separated by a space for the menu Item that is used to include an icon. Menu Item can include font icon and sprite image.

    Declaration
    public string IconCss { get; set; }
    Property Value
    Type
    System.String

    Id

    Specifies the id for menu item.

    Declaration
    public string Id { get; set; }
    Property Value
    Type
    System.String

    Items

    Specifies the sub menu items that is the array of MenuItem model.

    Declaration
    public List<MenuItemModel> Items { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<MenuItemModel>

    Separator

    Specifies separator between the menu items. Separator are either horizontal or vertical lines used to group menu items.

    Declaration
    public bool Separator { get; set; }
    Property Value
    Type
    System.Boolean

    Text

    Specifies text for menu item.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String

    Url

    Specifies url for menu item that creates the anchor link to navigate to the url provided.

    Declaration
    public string Url { get; set; }
    Property Value
    Type
    System.String

    Methods

    Equals(MenuItemModel)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(MenuItemModel menuItemModel)
    Parameters
    Type Name Description
    MenuItemModel menuItemModel

    An MenuItemModel to compare.

    Returns
    Type Description
    System.Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved