TX Text Control .NET for Windows Forms

ToolStripItemImage 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 a 16x16 icon for this dialog box launcher's quick access toolbar tool strip item.

Syntax

public System.Drawing.Image ToolStripItemImage { get; set; }

Examples

The following example uses DialogBoxLauncher.ToolStripItemImage to configure tool strip item image as part of the dialog box launcher workflow. The configured value is checked before the workflow continues.

dialogBoxLauncher.ToolStripItemImage = System.Drawing.Image.FromFile(@"Images\icon.png");
if (dialogBoxLauncher.ToolStripItemImage != null)
{
    Console.WriteLine("Dialog Box Launcher: Tool Strip Item Image is available.");
}