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

A class that defines the properties that are related to the context menu in RadPictureBoxElement.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PictureBoxContextMenuProperties

Inheritance: objectPictureBoxContextMenuProperties

Constructors

Initializes context-menu settings for the PictureBox element that owns the menu.

C#
public PictureBoxContextMenuProperties(RadPictureBoxElement owner)
Parameters:ownerRadPictureBoxElement

The element whose context menu receives the items and handles their actions.

Properties

Gets the copy menu item.

C#
public RadMenuItem CopyItem { get; }

Gets the cut menu item.

C#
public RadMenuItem CutItem { get; }

Gets the edit menu item.

C#
public RadMenuItem EditItem { get; }

Gets the open menu item.

C#
public RadMenuItem OpenItem { get; }

Gets the paste menu item.

C#
public RadMenuItem PasteItem { get; }

Gets the remove menu item.

C#
public RadMenuItem RemoveItem { get; }

Gets the save menu item.

C#
public RadMenuItem SaveItem { get; }

Methods

Creates a localized menu item, wires it to the owner's command handler, and adds it to the context menu.

C#
protected virtual RadMenuItem AddMenuItem(string textKey)
Parameters:textKeystring

The localization key used to obtain the item's text.

Returns:

RadMenuItem

The new menu item added to the owner's context menu.

Adds the built-in image commands to the owner's menu, separating Open, Save, and Remove from Cut, Copy, Paste, and Edit.

C#
protected virtual void BuildContextMenu()

Forwards a menu-item click to the owning PictureBox element for event notification and command handling.

C#
protected virtual void OnContextMenuItemClick(object sender, EventArgs e)
Parameters:senderobject

The context-menu item that was clicked.

eEventArgs

The click event data.