New to Telerik UI for WinForms? Start a free 30-day trial

Provides the object that requested a context menu and the menu that handlers can customize or suppress.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class SpreadsheetContextMenuOpeningEventArgs : EventArgs

Inheritance: objectEventArgsSpreadsheetContextMenuOpeningEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes event data with the initiating object and the initial context menu.

C#
public SpreadsheetContextMenuOpeningEventArgs(object source, RadContextMenu menu)
Parameters:sourceobject

The object that initiated the context-menu request.

menuRadContextMenu

The initial menu, which event handlers can replace or set to null to suppress display.

Properties

Gets or sets the menu to display; set it to null in the opening event to suppress the menu.

C#
public RadContextMenu Menu { get; set; }

Gets the object that initiated the context-menu request, such as the spreadsheet element or a sheet tab.

C#
public object Source { get; }