TX Text Control .NET for Windows Forms

LargeIcon 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 32x32 1/96 inch icon for this RibbonButton. This icon is shown when the DisplayMode property is set to IconTextRelation.LargeIconLabeled. The default value is IconTextRelation.LargeIconLabeled.

Syntax

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

Examples

The following example uses RibbonButton.LargeIcon to configure large icon as part of the ribbon button workflow. The change is then applied to the active document or user interface.

ribbonButton.LargeIcon = System.Drawing.Image.FromFile(@"Images\icon.png");
ribbonButton.Update();