alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class FileMenuOpenCloseEventArgs

    Provides information about the FileMenuOpening and FileMenuClosing events.

    Inheritance
    object
    FileMenuOpenCloseEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Spreadsheet
    Assembly: Syncfusion.Blazor.Spreadsheet.dll
    Syntax
    public class FileMenuOpenCloseEventArgs

    Constructors

    FileMenuOpenCloseEventArgs()

    Declaration
    public FileMenuOpenCloseEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the file menu open or close action should be cancelled.

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

    A bool indicating whether to cancel the open or close action. The default value is false. When set to true, the file menu will not open or close as requested.

    Remarks

    Set this property to true to prevent the file menu from opening or closing.

    This is useful for implementing custom validation, enforcing user permissions, or providing conditional menu access based on application state.

    Items

    Gets or sets the file menu items that are about to be displayed in the popup.

    Declaration
    public List<MenuItem> Items { get; set; }
    Property Value
    Type Description
    List<MenuItem>

    The collection of MenuItem entries that will be shown in the file menu.

    Remarks

    This collection is dynamic. Assign a new List<T> to replace the entire menu. The changes are applied to the rendered file menu before it is shown or closed.

    ParentItem

    Gets or sets the parent file menu item for submenu popups.

    Declaration
    public MenuItem ParentItem { get; set; }
    Property Value
    Type Description
    MenuItem

    The parent MenuItem when the popup represents a submenu; otherwise, null. The default value is null for top-level file menu events.

    Remarks

    This property is null when the event is triggered for the top-level file menu.

    It contains the parent MenuItem reference when the event represents a submenu popup, allowing you to implement hierarchical menu logic or context-aware behaviors.

    Use this property to determine the menu hierarchy and apply different customizations based on whether the event is for a top-level menu or a submenu.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved