DialogBoxLauncher Class
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
- Inherits
- Component
- Dialog
Box Launcher
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 : ComponentPublic Class DialogBoxLauncher
Inherits ComponentExamples
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.");Console.WriteLine($"Context Menu Strip: {dialogBoxLauncher.ContextMenuStrip}")
Console.WriteLine("Dialog Box Launcher is ready for use.")Members
Properties
| Property | Description |
|---|---|
| ContextMenuStrip | Gets or sets the ContextMenuStrip associated with this dialog box launcher. |
| Enabled | Gets or sets a value indicating whether this dialog box launcher is enabled. |
| ToolStripItemImage | Gets or sets a 16x16 icon for this dialog box launcher's quick access toolbar tool strip item. |
| ToolTip | Gets an object of type RibbonToolTip that displays text when the mouse pointer hovers over the item. |
| Visible | Gets or sets a value indicating whether this dialog box launcher is visible. |
Events
| Event | Description |
|---|---|
| Click | Occurs as the dialog box launcher is clicked. |