Icon 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 the icon for this RibbonListViewItem.
Syntax
public System.Drawing.Image Icon { get; set; }Public Property Icon As System.Drawing.ImageExamples
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.");
}ribbonListViewItem.Icon = System.Drawing.Image.FromFile("Images\icon.png")
If ribbonListViewItem.Icon IsNot Nothing Then
Console.WriteLine("Ribbon List View Item: Icon is available.")
End If