TX Text Control .NET for Windows Forms

Icon 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 the icon for this RibbonListViewItem.

Syntax

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

Examples

The following example uses RibbonListViewItem.Icon to configure icon as part of the ribbon list view item workflow. The configured value is checked before the workflow continues.

ribbonListViewItem.Icon = System.Drawing.Image.FromFile(@"Images\icon.png");
if (ribbonListViewItem.Icon != null)
{
    Console.WriteLine("Ribbon List View Item: Icon is available.");
}