TX Text Control .NET for Windows Forms

ContextMenuStrip Property

Property|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the ContextMenuStrip associated with this dialog box launcher.

Syntax

public ContextMenuStrip ContextMenuStrip { get; set; }

Examples

The following example uses DialogBoxLauncher.ContextMenuStrip to configure context menu strip as part of the dialog box launcher workflow. The configured value is checked before the workflow continues.

dialogBoxLauncher.ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip();
if (dialogBoxLauncher.ContextMenuStrip != null)
{
    Console.WriteLine("Dialog Box Launcher: Context Menu Strip is available.");
}