TX Text Control .NET for Windows Forms

DialogBoxLauncher Class

Class|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
Inherits
  1. Component
  2. DialogBoxLauncher

Description

The DialogBoxLauncher class represents the dialog box launcher item of a RibbonGroup. A DialogBoxLauncher is inherited from the System.ComponentModel.Component class. The following describes only the properties, methods and events defined through the DialogBoxLauncher class. For a list of properties, methods and events inherited from the System.ComponentModel.Component class see the .NET Framework reference.

Syntax

public class DialogBoxLauncher : Component

Examples

The following example includes the context menu strip value from a Dialog Box Launcher object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Context Menu Strip: {dialogBoxLauncher.ContextMenuStrip}");
Console.WriteLine("Dialog Box Launcher is ready for use.");

Members

Properties

PropertyDescription
ContextMenuStripGets or sets the ContextMenuStrip associated with this dialog box launcher.
EnabledGets or sets a value indicating whether this dialog box launcher is enabled.
ToolStripItemImageGets or sets a 16x16 icon for this dialog box launcher's quick access toolbar tool strip item.
ToolTipGets an object of type RibbonToolTip that displays text when the mouse pointer hovers over the item.
VisibleGets or sets a value indicating whether this dialog box launcher is visible.

Events

EventDescription
ClickOccurs as the dialog box launcher is clicked.