ContextMenuStrip Property
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets the ContextMenuStrip associated with this dialog box launcher.
Syntax
public ContextMenuStrip ContextMenuStrip { get; set; }Public Property ContextMenuStrip As ContextMenuStripExamples
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.");
}dialogBoxLauncher.ContextMenuStrip = New System.Windows.Forms.ContextMenuStrip()
If dialogBoxLauncher.ContextMenuStrip IsNot Nothing Then
Console.WriteLine("Dialog Box Launcher: Context Menu Strip is available.")
End If