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:
public class PictureBoxContextMenuProperties
Inheritance: objectPictureBoxContextMenuProperties
Constructors
Initializes context-menu settings for the PictureBox element that owns the menu.
public PictureBoxContextMenuProperties(RadPictureBoxElement owner)
The element whose context menu receives the items and handles their actions.
Properties
Gets the copy menu item.
public RadMenuItem CopyItem { get; }
Gets the cut menu item.
public RadMenuItem CutItem { get; }
Gets the edit menu item.
public RadMenuItem EditItem { get; }
Gets the open menu item.
public RadMenuItem OpenItem { get; }
Gets the paste menu item.
public RadMenuItem PasteItem { get; }
Gets the remove menu item.
public RadMenuItem RemoveItem { get; }
Gets the save menu item.
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.
protected virtual RadMenuItem AddMenuItem(string textKey)
The localization key used to obtain the item's text.
Returns: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.
protected virtual void BuildContextMenu()