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

Represents a context menu of RadTextBoxControlElement

Definition

Constructors

Initializes a new instance of the TextBoxControlDefaultContextMenu class.

C#
public TextBoxControlDefaultContextMenu(RadTextBoxControlElement textBox)
Parameters:textBoxRadTextBoxControlElement

The text box.

Properties

Gets the associated text box.

C#
protected RadTextBoxControlElement TextBox { get; }

Methods

Adds the menu item by localizable string identifier

C#
protected virtual RadMenuItem AddMenuItem(string stringId)
Parameters:stringIdstring

The string id.

Returns:

RadMenuItem

Refreshes the menu theme, localized labels, and command availability before the menu opens.

C#
protected override void OnDropDownOpening(CancelEventArgs args)
Parameters:argsCancelEventArgs

The cancelable drop-down-opening event arguments.

Overrides: RadContextMenu.OnDropDownOpening(CancelEventArgs)