ToolStripItemImage 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 a 16x16 icon for this dialog box launcher's quick access toolbar tool strip item.
Syntax
public System.Drawing.Image ToolStripItemImage { get; set; }Public Property ToolStripItemImage As System.Drawing.ImageExamples
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.");
}dialogBoxLauncher.ToolStripItemImage = System.Drawing.Image.FromFile("Images\icon.png")
If dialogBoxLauncher.ToolStripItemImage IsNot Nothing Then
Console.WriteLine("Dialog Box Launcher: Tool Strip Item Image is available.")
End If